Prevent Tkinter Canvas from resizing

2006-01-19 Thread Eric Wong
Using Tkinter, I have a Canvas with vertical Scrollbar attached. At runtime, I dynamically create Checkboxes on the Canvas, each one on a different row. When I add a lot of Checkboxes, instead of the scrollbar kicking in, the Canvas resizes and subsequently, my Application window resizes such tha

Re: why PyObject_VAR_HEAD?

2009-07-06 Thread Eric Wong
kio wrote: > Hi, > > I'm studying the CPython source code. I don’t quite understand why > they’re using PyObject_VAR_HEAD to define struct like PyListObject. To > define such kind of struct, could I use _PyObject_HEAD_EXTRA as a > header and add "items" pointer and "allocated" count explicity? I

Re: How Python Implements "long integer"?

2009-07-07 Thread Eric Wong
Pedram wrote: > Hello Mr. Dickinson. Glad to see you again :) > > On Jul 6, 5:46 pm, Mark Dickinson wrote: >> On Jul 6, 1:24 pm, Pedram wrote: >> >> > OK, fine, I read longobject.c at last! :) >> > I found that longobject is a structure like this: >> >> > struct _longobject { >> > struct _objec