Re: StaticBoxSizer problems

2006-03-10 Thread Matthias Kluwe
Hi! Steve Holden wrote: > Did you actually try removing the line and running the program? I tried, of course :-) Removing the line box.Add(item=upper_box, flag=wx.GROW) yields the remaining program import wx app = wx.PySimpleApp() frame = wx.Frame(parent=None, title="Test") box = wx.BoxSizer(

Re: StaticBoxSizer problems

2006-03-09 Thread Matthias Kluwe
Hi! If anybody's interested, I've got an solution now. > I'd like to place several StaticBoxes in a frame, but I can't get it > right. > import wx > app = wx.PySimpleApp() > frame = wx.Frame(parent=None, title="Test") > box = wx.BoxSizer(wx.VERTICAL) > frame.SetSizer(box) > upper_box = wx.Stati

Re: StaticBoxSizer problems

2006-03-09 Thread Matthias Kluwe
Hi! > Matthias Kluwe wrote: >> I'd like to place several StaticBoxes in a frame, but I can't get it >> right. >> Consider the following code: > >> import wx > >> app = wx.PySimpleApp() >> frame = wx.Frame(parent=None, title="Te

[wxpython] StaticBoxSizer problems

2006-03-08 Thread Matthias Kluwe
Hi! I'd like to place several StaticBoxes in a frame, but I can't get it right. Consider the following code: import wx app = wx.PySimpleApp() frame = wx.Frame(parent=None, title="Test") box = wx.BoxSizer(wx.VERTICAL) frame.SetSizer(box) upper_box = wx.StaticBox(parent=frame, label="Upper Box")

Re: Python versus Perl

2005-09-06 Thread Matthias Kluwe
Hi! > [...] > 1 - How does the speed of execution of Perl compares to that of Python? This might not answer your question, but I found "The Computer Language Shootout Benchmarks" quite interesting (and fun). Python to Perl comparison can be found at http://shootout.alioth.debian.org/benchmark.p

Re: smtplib and TLS

2005-06-21 Thread Matthias Kluwe
> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid >> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >> After getting a @gmail.com address, I recognized I had to use TLS in my >> python scripts using smtplib in order to get mail to the smtp.

Re: smtplib and TLS

2005-06-18 Thread Matthias Kluwe
> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >> The server accepts and delivers my messages, but the last command >> raises >> socket.sslerror: (8, 'EOF occurred in violation of protocol') >> Did I miss something? Any hint is welcome. &g

Re: pysqlite - Checking the existance of a table

2005-06-17 Thread Matthias Kluwe
Simply use the internal table SQLite_Master: select name from SQLite_Master will return all existing tables. Regards, Matthias -- http://mail.python.org/mailman/listinfo/python-list

smtplib and TLS

2005-06-17 Thread Matthias Kluwe
Hi! After getting a @gmail.com address, I recognized I had to use TLS in my python scripts using smtplib in order to get mail to the smtp.gmail.com server. Things work well so far, apart from an unexpected error. Here's my sample code: import smtplib server = smtplib.SMTP('smtp.gmail.com', 587)