468,290 Members | 2,127 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

tkinter: native look to windows?

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?
Jun 7 '06 #1
2 3434
John Salerno wrote:
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/...windowsxp.html

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

</F>

Jun 7 '06 #2
Fredrik Lundh wrote:
John Salerno wrote:
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/...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#! :)
Jun 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

25 posts views Thread by BJörn Lindqvist | last post: by
8 posts views Thread by Erik Johnson | last post: by
3 posts views Thread by John Pote | last post: by
7 posts views Thread by krishnakant Mane | last post: by
2 posts views Thread by Ben Finney | last post: by
44 posts views Thread by bg_ie | last post: by
7 posts views Thread by Protected | last post: by
11 posts views Thread by Kenneth McDonald | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.