Wing vs Netbeans IDE?

2009-05-07 Thread Lawrence Hanser
Dear Colleagues,

I have been using NetBeans for a month or so now and am reasonably
happy with it.  I'm considering other options, and ran across Wing.
I'm interested in opinions about NetBeans and Wing as IDE for Python.

Thanks,

Larry
--
http://mail.python.org/mailman/listinfo/python-list


don't understand namespaces...

2009-04-30 Thread Lawrence Hanser
Dear Pythoners,

I think I do not yet have a good understanding of namespaces.  Here is
what I have in broad outline form:


import Tkinter

Class App(Frame)
  define two frames, buttons in one and Listbox in the other

Class App2(Frame)
  define one frame with a Text widget in it

root = Tk()
app = App(root)
win2 = Toplevel(root)
app2 = App2(win2)
root.mainloop()


My understanding of the above goes like this:
1) create a root window
2) instantiate a class that defines a Frame in the root window
3) create another Toplevel window
4) instantiate another class that defines a frame in the Toplevel window (win2)

What I cannot figure out is how to reference a widget in app2 from app...

I hope this is sort of clear.

Any assistance appreciated.

Thanks,

Larry
--
http://mail.python.org/mailman/listinfo/python-list