tkinter paint program

G

Gigs_

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
 
?

=?ISO-8859-2?Q?Wojciech_Mu=B3a?=

Gigs_ said:
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.
 
G

Gigs_

Wojciech said:
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
 

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,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top