Re: SocketServer problem: client hangs trying to reconnect after server restart
In method StopServer() of class MyServer try calling self.server_close() after the self.shutdown() call. I believe this will actually close the server's socket and allow its reuse. -- http://mail.python.org/mailman/listinfo/python-list
Re: [RELEASED] Python 3.2.4 and Python 3.3.1
On Saturday, 6 April 2013 21:43:11 UTC+1, Georg Brandl wrote: > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On behalf of the Python development team, I am pleased to announce the > > final releases of Python 3.2.4 and 3.3.1. > The Python 3.3.1 Release page on python.org still says "This is a preview release, and its use is not recommended in production settings." I'm assuming this is just an oversight? -- http://mail.python.org/mailman/listinfo/python-list
Re: Cross-platform issue with wxRadioBox
[EMAIL PROTECTED] wrote: > I have updated my script to use wx.RadioButton instead, which works > perfectly on my mac again, but now the submit button doesn't show up on > the pc and I can't click in the netid field on the pc either. any > ideas? > I modified the __init__() method of class regFrame from your original posting to create a wx.Panel as a child of self and then made all the controls be children of this panel. Your app then seemed to work OK on Windows XP. Using a wx.Panel to hold the content of a frame is a standard wxPython idiom. I find reading the wxPython demo source is a very useful way to learn this sort of thing. HTH, -- CMcP -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython, dynamically modify window
Grant wrote: > Hi, I am looking for a tip. I have a panel and a checkbox. When I > check the checkbox, I would like to add buttons to the panel > (dynamically). When the checkbox is unchecked, the buttons should not > appear (be deleted)---all the while, the window should resize if necessary. > Here is one way that seems to work (wxPython 2.7, Python 2.5, Mac OS X 10.4.8). It uses a sizer's Hide() and Show() methods to control visibility of a child sizer containing the buttons. To resize the frame containing the checkbox and buttons, ensure the frame has a sizer and use the Fit() method after Hiding and Showing the buttons. HTH, -- CMcP import wx class AppFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title) panel = wx.Panel(self, -1) panel_sizer = wx.BoxSizer(wx.VERTICAL) panel.SetSizer(panel_sizer) cb = wx.CheckBox(panel, -1, 'Need some buttons') cb.SetValue(False) self.Bind(wx.EVT_CHECKBOX, self.EvtCheckBox, cb) button_sizer = wx.BoxSizer(wx.HORIZONTAL) b1 = wx.Button(panel, -1, 'Button 1') b2 = wx.Button(panel, -1, 'Button 2') button_sizer.Add(b1, 0, wx.ALL, 5) button_sizer.Add(b2, 0, wx.ALL, 5) panel_sizer.Add(cb, 0, wx.ALL, 5) panel_sizer.Add(button_sizer) panel_sizer.Hide(button_sizer, recursive=True) frame_sizer = wx.BoxSizer() frame_sizer.Add(panel, 1, wx.EXPAND) self.SetSizer(frame_sizer) self.panel_sizer = panel_sizer self.button_sizer = button_sizer self.Fit() def EvtCheckBox(self, event): cb = event.GetEventObject() if cb.GetValue() == True: self.panel_sizer.Show(self.button_sizer, recursive=True) else: self.panel_sizer.Hide(self.button_sizer, recursive=True) self.Fit() class App(wx.App): def OnInit(self): frame = AppFrame(None, 'Hide/Show Example') self.SetTopWindow(frame) frame.Show() return True if __name__ == '__main__': app = App() app.MainLoop() -- http://mail.python.org/mailman/listinfo/python-list
Re: [pysqlite] [ANN] pysqlite and APSW projects moved
In article <[EMAIL PROTECTED]>Gerhard Häring <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > Gerhard Häring wrote: >> [...] APSW >> >> >> web:http://oss.itsystementwicklung.de/trac/apsw/ >> scm:Subversion: http://initd.org/svn/pysqlite/apsw/trunk/ > That should have been > http://oss.itsystementwicklung.de/svn/apsw/apsw/ > - -- Gerhard > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > iD8DBQFH1DL7dIO4ozGCH14RAq4gAJ9tZuB9qcPERBkGzKEVBEx8nybfXgCeK8cX > V7sH3uAskDDNBuxYG34vExI= > =IXOx > -END PGP SIGNATURE- Hi, I'm getting a 404 Not Found trying to get to the APSW web page: Not Found The requested URL /svn/apsw/apsw/ was not found on this server. Apache/2.2.4 (Ubuntu) DAV/2 PHP/5.2.3-1ubuntu6.3 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_wsgi/1.3 Python/2.5.1 Server at oss.itsystementwicklung.de Port 80 Regards, --CMcP -- I'm trying a new usenet client for Mac, Nemo OS X. You can download it at http://www.malcom-mac.com/nemo -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list