tkinter: native look to windows?

J

John Salerno

I'm a little confused. I was under the impression (perhaps incorrectly)
that Tkinter will create GUI widgets that are native to your OS, so I
should have an XPish looking application. But when I create buttons (and
even the text fields look a bit different), they are not the 'fancy'
Windows buttons that are rectangular with rounded edges and have a
blueish border around the active button, but instead are just square
buttons. Is this normal behavior? Why don't I get the XP type of
buttons, and is it possible to get them?
 
F

Fredrik Lundh

John said:
I'm a little confused. I was under the impression (perhaps incorrectly)
that Tkinter will create GUI widgets that are native to your OS

only for some widgets; some native widgets are not flexible enough.

and even native widgets don't always look like XP widgets (windows uses
a rather obscure manifest XML resource file to control the look and feel
for a specific application).

to get better XP styling, you can use the Tile library:

http://tkinter.unpythonic.net/wiki/UsingTile

http://tktable.sourceforge.net/tile/screenshots/windowsxp.html

or an 8.5 development version (which, afaik, includes the Tile library).

</F>
 
J

John Salerno

Fredrik said:
only for some widgets; some native widgets are not flexible enough.

and even native widgets don't always look like XP widgets (windows uses
a rather obscure manifest XML resource file to control the look and feel
for a specific application).

to get better XP styling, you can use the Tile library:

http://tkinter.unpythonic.net/wiki/UsingTile

http://tktable.sourceforge.net/tile/screenshots/windowsxp.html

or an 8.5 development version (which, afaik, includes the Tile library).

</F>

Thanks for the suggestions. I definitely miss Visual Studio's drag and
drop GUI developer. But I definitely don't miss trying to figure out how
to write something in C#! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top