wxPython Conventions



I've recently decided to try my hand at GUI programming with wxPython,
and I've got a couple questions about the general conventions regarding
it.

To mess around with it, I decided to create a small app to check my
Gmail. I want something that will just sit in my system tray checking
for new emails every ten minutes or so. As such, I have no need for an
actual window anywhere. So I'm wondering if I should still use a Frame
or not. From playing around with it, it seems it's unnecessary, but
I'm admittedly unfamiliar with what would be considered proper.

My other question involved the proper location of specific functions.
Take for instance the functions meant for logging in and actually
checking for new email. Would it be better to put them in my App
class, my Frame class (if the answer to the above question is that yes,
I should use a Frame regardless), or in an entirely separate class? To
me, it seems most natural to put them in the App class, but I'm not
sure if it would be better to avoid clutter and stick them somewhere
else. And if I would stick them in some other class, where should I
keep the reference to the instance of that class? In my App or Frame?

Like I said, I'm just beginning my experience with wxPython, so any
help would be appreciated. I've looked through all the demos and
searched the group, but nothing else seems to pertain to my specific
questions.

Jared

.



Relevant Pages

  • Re: I need a simple windows form handle.
    ... to the library as a parameter, then it can output video on the form. ... App in C# in 5 minutes and send video from my python app to it by UDP. ... canvas= wx.Canvas(frame) ... that's because I guess wxpython does not use native windows forms ...
    (comp.lang.python)
  • wxPython tutorial?
    ... wxPython. ... Sooo... ... ("No module named frame") ... app = App ...
    (comp.lang.python)
  • Re: wxPython: "Nesting" wx.NoteBooks?
    ... with wxPython, you just need to structure it correctly. ... app = wx.PySimpleApp ... frame = MainWindow(None, -1, "MultiTabControl") ...
    (comp.lang.python)
  • Re: app with standalone gui and web interface
    ... > and separately creating a gui for the ... (for the wxPython version). ... installed could access the application as if it was a desktop app. ... fetch the same wxwml source, convert it into html/xml and send that to ...
    (comp.lang.python)
  • Re: Best GUI for small-scale accounting app?
    ... >>I'll soon start development of a specialized small app and need ... difficult still than using either wxPython or PyQT. ... I personally think that wxPython gets closest to the ... Python Web Programming http://pydish.holdenweb.com/ ...
    (comp.lang.python)