471,310 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

How to create different shapes of buttons using Python Tkinter for developing GUI

Hi !
I am developing front end for some application using Python Tkinter. And I am new to this GUI development.
In my application, I have to create buttons other than square or rectangle. I want buttons something like Oval(or any other shape). I searched a lot.. But could'nt get.
If any of you know please help me out.

Thanks in advance.
Jul 25 '07 #1
1 14137
bartonc
6,596 Expert 4TB
Hi !
I am developing front end for some application using Python Tkinter. And I am new to this GUI development.
In my application, I have to create buttons other than square or rectangle. I want buttons something like Oval(or any other shape). I searched a lot.. But could'nt get.
If any of you know please help me out.

Thanks in advance.
Hello and welcome. You didn't find add shaped buttons in Tkinter because (AFAIK) they don't exist. There are many such things missing from that toolkit. I'm not sure if it is due to TK limitations or merely Tkinter development, but either way, Tkinter is not a full fledged GUI toolkit. You could, however, probably develop your own button (not recommended because you will soon hit other limitations and chuck Tkinter) with some graphics and an event handler or two.

There are many option when you decide to step up from Tkinter. My favorite GUI toolkit (which does contain shaped windows is called wxPython. It's a Python wrapper (interface) to the very cool wxWidgets package.
Jul 25 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

59 posts views Thread by Hugh Macdonald | last post: by
1 post views Thread by PGMoscatt | last post: by
10 posts views Thread by Franz Steinhaeusler | last post: by
1 post views Thread by jmalone | last post: by
6 posts views Thread by Alan Isaac | last post: by
11 posts views Thread by Kenneth McDonald | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.