Tkinter : button size

Erik de Castro Lopo nospam at mega-nerd.com
Fri Jan 26 22:39:24 EST 2001


dsavitsk wrote:
> 
> > Is there any neat way I can force all the buttons to be the same
> > size regardless of the number of characters in the label?
> 
> self.cmdX = Button(frame, width=15, text='Text Here', borderwidth=3,
> relief=GROOVE, command=self.cmdXPress)

Perfect!!!!

I also really like what "relief=GROOVE" does to those buttons. Cool!!!

Thanks,
Erik
-- 
+----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes its valid)
+----------------------------------------------------------+
Complex problems have simple easy to understand wrong answers.



More information about the Python-list mailing list