[wxPython] Tab traversal

[ You'll probably eventually get this message twice, SF isn't talking to my
other SMTP server again...]

>
> > Is the panel given as the parent parameter for the text controls?
> >
>
> This is what it looks like with the wxTextCtrls:
>
> def OnPrefs(self, event):
> class optionFrame(wxFrame):
> def __init__(self, parent, ID, title, pos, size):
> wxFrame.__init__(self,parent, ID, title, pos,
wxSize(450,300))
> panel = wxPanel(self, -1,style=wxTAB_TRAVERSAL)
> sizer = wxBoxSizer(wxVERTICAL)
> panel.SetSizer(sizer)
> panel.SetAutoLayout(true)
> panel.transient = wxTextCtrl(self, wxNewId(), "", \
> wxPoint(col, row), wxSize(width, 20))
> panel.transient.SetInsertionPoint(0)
> panel.hopstolive = wxTextCtrl(self, wxNewId(), "",

\

···

> wxPoint(col, row+30), wxSize(width, 20))
> panel.hopstolive.SetInsertionPoint(0)
>

Use panel instead of self for the first parameter in the wxTextCtrl calls.

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

just wondering if there is an easy alternative to wxID_OK that will return
the same value (and have the same effect) but won't destroy the dialog in
the process.
thanks!
-Steve

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

just wondering if there is an easy alternative to wxID_OK that will return
the same value (and have the same effect) but won't destroy the dialog in
the process.

I don't think so. It's how the modal dialogs were designed. If you don't
care if they are modal then you could probably get something to work, or
maybe use a wxFrame with MakeModal(true)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users