tkinter paint program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gigs_

    #1

    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
  • =?ISO-8859-2?Q?Wojciech_Mu=B3a?=

    #2
    Re: tkinter paint program

    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.

    Comment

    • Gigs_

      #3
      Re: tkinter paint program

      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

      Comment

      Working...