[Tkinter-discuss] canvas origin is off by 2 pixels, is this normal

2011-01-06 Thread stefanix
I just started using Tkinter and wanted to start using the canvas widget. I am having a weird problem with the origin. Not sure if this is a bug or I am missing something. When I create a canvas with 200x100 pixels and then draw an ellipse into the center (0,0, 200, 100) it is clipped by two pixe

Re: [Tkinter-discuss] canvas origin is off by 2 pixels, is this normal

2011-01-06 Thread python
Stefanix, When you create your Canvas, try setting these properties in your Canvas creation statement: borderwidth=0 highlightthickness=0 Both these properties consume visual space in your canvas. If you need non-zero values for these properties, then just account for the edge pixels consumed b

[Tkinter-discuss] Modify the Tab Order

2011-01-06 Thread craf
Hi. I wonder if you can change the tab order, first, pass the button 'two' and then the button 'one', without changing the pack of buttons. CODE:-- import Tkinter import ttk master = Tkinter.Tk() b1 = Tkinter.Button(master, text='One') b1.pack(side='right')