Do other Python GUI toolkits require this?

Kevin Walzer kw at codebykevin.com
Wed Apr 18 23:35:05 CEST 2007


 From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X:

"As described in Objective-C for PyObjC users the creation of 
Objective-C objects is a two-stage process. To initialize objects, first 
call a class method to allocate the memory (typically alloc), and then 
call an initializer (typically starts with init). Some classes have 
class methods which perform this behind the scenes, especially classes 
that create cached, immutable, or singleton instances."

An example:

myObject = NSObject.alloc().init()

I know Tkinter doesn't require any manual memory allocation of this 
sort. Does wxPython, PyQt, PyGtk require anything like this when 
creating objects?

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com



More information about the Python-list mailing list