[Tutor] Get user input in wxpython

2005-08-06 Thread _ Dan _
Hi: I'm new to python and wxpython, and I'm trying to make a program to send mail. I'm using what follows: class MyFrame1(wx.Frame): def __init__(self, *args, **kwds): ... self.message = wx.TextCtrl(self.panel_1, -1, ) self.button_1 = wx.Button(self.panel_1, -1, SEND Mail) ...

[Tutor] Instances

2005-08-06 Thread Greg Kellogg
Lets say i do: i = f.get_movie('0092411') No I know the i holds an instance: i imdb.Movie.Movie instance at 0x2d7a08 How can I find out the value of all the data this instance has? I can do a dir(i) ['_Movie__modFunct', '_Movie__movie_data', '_Movie__namesRefs', '_Movie__titlesRefs',

Re: [Tutor] Functional question

2005-08-06 Thread Kent Johnson
Bernard Lebel wrote: Thanks Kent. I had tried the very same thing, but with a list instead of a tuple, and got an got this: dMap[ ['allo','bonjour'] ] = 'salut' Traceback (most recent call last): File stdin, line 1, in ? TypeError: list objects are unhashable It never crossed my

Re: [Tutor] Get user input in wxpython

2005-08-06 Thread Kent Johnson
_ Dan _ wrote: Hi: I'm new to python and wxpython, and I'm trying to make a program to send mail. I'm using what follows: class MyFrame1(wx.Frame): def __init__(self, *args, **kwds): ... self.message = wx.TextCtrl(self.panel_1, -1, ) self.button_1 = wx.Button(self.panel_1,

Re: [Tutor] Instances

2005-08-06 Thread Kent Johnson
Greg Kellogg wrote: Lets say i do: i = f.get_movie('0092411') No I know the i holds an instance: i imdb.Movie.Movie instance at 0x2d7a08 How can I find out the value of all the data this instance has? I can do a dir(i) ... I know there is more info in there than this, is

Re: [Tutor] Get user input in wxpython

2005-08-06 Thread danf_1979
Just if someone is trying something similar... I did it! Thanks Ismael for your info! ... self.label_1 = wx.StaticText(self.panel_1, -1, TO:) self.label_2 = wx.StaticText(self.panel_1, -1, FROM:) self.label_3 = wx.StaticText(self.panel_1, -1, SUBJECT) self.label_4 = wx.StaticText(self.panel_1,

[Tutor] Lots of variables

2005-08-06 Thread Øyvind
Hello. I am trying to write a gui that has a lot of checkboxes. It is over 200 different ones. I use a for statement to generate: ver = 200 for i in ['Car','House','Boat','Plane']: self.fra26_che01p = Checkbutton (self.fra26)

Re: [Tutor] Lots of variables

2005-08-06 Thread Kent Johnson
Øyvind wrote: Hello. I am trying to write a gui that has a lot of checkboxes. It is over 200 different ones. I use a for statement to generate: ver = 200 for i in ['Car','House','Boat','Plane']: self.fra26_che01p = Checkbutton (self.fra26)

Re: [Tutor] IP Address from Python module?

2005-08-06 Thread Joseph Quigley
Thanks.. I hoped python had something like that!!! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor