[Tutor] wxPython parent classes

2011-04-19 Thread Eric Stevens
I've been noticing that in all the example codes I have seen, when someone creates container, x, inside of a frame or other container class, y, they always seem to create an instance of wx.Panel first and then use that instance as the parent class of container x. I have been just placing 'self' in

[Tutor] wxPython issues

2011-04-18 Thread Eric Stevens
I am trying to create an addressbook program and am currently working on prototype pages. Right now, I am trying to create a wx.ScrolledWindow class with a wx.ListCtrl to display the names of all contacts. I keep running into an error with my current configuration that is stating I have not specif

[Tutor] List sorting issues

2011-03-28 Thread Eric Stevens
I am currently designing an address book program, and am trying to design a method for organizing the keys (which are the names of the entries) for displaying purposes. I have created a list by doing sortedKeys = self.addbook.keys() {the self.addbook refers to a dictionary in a custom class}, and t

[Tutor] zipfile error message

2011-02-07 Thread Eric Stevens
Hi: I am relatively new to Python and have been recently trying to experiment with its zipfile capabilities. However, everytime I try to open a zip ( using method zipfile.ZipFile(open('zipfile.zip','r')) ) I continue to get an error message that states:error: unpack requires a string argument of l