Font drop down

Hi again,

I was wondering if anyone had made or knows of a font choosing
dropdown list that displays the names of the different fonts in
their own font. For all you mac users, you know what I mean. :wink:

Before I go figuring out how to go about this I thought I would
see if there was something already out there. I find it hard
to believe that I am the first person to want something like this.

I guess part b would be to ask for advice on how to go about
implementing something like this. I was thinking something like
a combo box, with a html component, and then have each entry
in its own tag with the font set, but I could be way off here.

Any advice would be grately appreciated. I am finding things have
come to a standstill with the development, and it is pretty
frustrating.

Thanks in advance,

Rohan

Hi Rohan,

Hi again,

I was wondering if anyone had made or knows of a font choosing
dropdown list that displays the names of the different fonts in
their own font. For all you mac users, you know what I mean. :wink:

Before I go figuring out how to go about this I thought I would
see if there was something already out there. I find it hard
to believe that I am the first person to want something like this.

I guess part b would be to ask for advice on how to go about
implementing something like this. I was thinking something like
a combo box, with a html component, and then have each entry
in its own tag with the font set, but I could be way off here.

Any advice would be grately appreciated. I am finding things have
come to a standstill with the development, and it is pretty
frustrating.

Thanks in advance,

Rohan

I haven't done this, but the demo has some examples that deal with fonts that I think will get you started. Download the demo from the website: Redirecting...

And check out the FontDialog and FontEnumerator demos.

Hopefully that will get you started anyway.

路路路

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

Rohan wrote:

Hi again,

I was wondering if anyone had made or knows of a font choosing
dropdown list that displays the names of the different fonts in
their own font. For all you mac users, you know what I mean. :wink:

Before I go figuring out how to go about this I thought I would
see if there was something already out there. I find it hard
to believe that I am the first person to want something like this.

I guess part b would be to ask for advice on how to go about
implementing something like this. I was thinking something like
a combo box, with a html component, and then have each entry
in its own tag with the font set, but I could be way off here.

Any advice would be grately appreciated. I am finding things have
come to a standstill with the development, and it is pretty
frustrating.

Take a look at the ComboCtrl. It looks and acts like a normal combobox, but allows you to have total control over the content of the popup window, including drawing it yourself if you want.

路路路

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Rohan wrote:

Hi again,

I was wondering if anyone had made or knows of a font choosing
dropdown list that displays the names of the different fonts in
their own font. For all you mac users, you know what I mean. :wink:

Before I go figuring out how to go about this I thought I would
see if there was something already out there. I find it hard
to believe that I am the first person to want something like this.

I guess part b would be to ask for advice on how to go about
implementing something like this. I was thinking something like
a combo box, with a html component, and then have each entry
in its own tag with the font set, but I could be way off here.

Any advice would be grately appreciated. I am finding things have
come to a standstill with the development, and it is pretty
frustrating.

Take a look at the ComboCtrl. It looks and acts like a normal combobox, but allows you to have total control over the content of the popup window, including drawing it yourself if you want.

Thanks for the advice, I will look into it. It sounds like what I am looking for.

Rohan

Robin Dunn wrote:

Rohan wrote:

Any advice would be grately appreciated. I am finding things have
come to a standstill with the development, and it is pretty
frustrating.

Take a look at the ComboCtrl. It looks and acts like a normal combobox, but allows you to have total control over the content of the popup window, including drawing it yourself if you want.

Thanks for the advice, this has done the trick, now have a nice font
drop down. I would also like to thank whoever created the comboctrl
and listctrl parts of the demo, they were very helpful in getting this
working.

Rohan