470,631 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

tkinter paint program

I'm working on tkinter paint program, mostly to learn tkinter canvas.
I have method which create buttons for oval, rectangle, line, polygon etc.
How to make oval button to be sunken when i click it and to remain sunken until
i click on another button (like rectangle and than is another button sunken)?

thanks
Apr 24 '07 #1
2 3819
Gigs_ wrote:
I'm working on tkinter paint program, mostly to learn tkinter canvas.
I have method which create buttons for oval, rectangle, line, polygon etc.
How to make oval button to be sunken when i click it and to remain
sunken until i click on another button (like rectangle and than is
another button sunken)?
You can use radiobuttons. If attribute indicatoron is 0, then
radiobuttons are drawn as regular buttons. With attribute
selectcolor you can set background color of selected button.

w.
Apr 24 '07 #2
Wojciech Mu≥a wrote:
Gigs_ wrote:
>I'm working on tkinter paint program, mostly to learn tkinter canvas.
I have method which create buttons for oval, rectangle, line, polygon
etc.
How to make oval button to be sunken when i click it and to remain
sunken until i click on another button (like rectangle and than is
another button sunken)?

You can use radiobuttons. If attribute indicatoron is 0, then
radiobuttons are drawn as regular buttons. With attribute
selectcolor you can set background color of selected button.

w.
thanks, thats exactly i need

Apr 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit | last post: by
2 posts views Thread by Rick Olson | last post: by
1 post views Thread by Gigs_ | last post: by
2 posts views Thread by Gigs_ | last post: by
1 post views Thread by Gigs_ | last post: by
reply views Thread by wolfonenet | last post: by
8 posts views Thread by karthikbalaguru | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.