David - 2008-07-20

All,

The code below will not run. There is some sort of error. This is one of those situation in PyDev where no problems are reported, no error messages are reported to the console during the run attempt. What do programmers do in this situation in PyDev-Eclipse to hunt down the source of the error?

import wx

class LeftPanel(wx.Panel):
   
    def __init__(self, parent, id):
        wx.Panel.__init__(self, parent, id, style=wx.BORDER_SUNKEN)

class RightPanel(wx.Panel):
   
    def __init__(self, parent, id):
        wx.Panel.__init__(self, parent, id, style=wx.BORDER_SUNKEN)
       
        self.text=wx.StaticText(self, -1, '0', (40, 60))
       
class Communicate(wx.Frame):
   
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title, size=(280, 200))
       
        panel=wx.Panel(self, -1)
        self.rightPanel=RightPanel(panel, -1)
       
        hbox=wx.BoxSizer(wx.HORIZONTAL)       
        hbox.add(self.rightPanel, 1, wx.EXPAND|wx.ALL, 5)
       
        panel.SetSizer(hbox)
        self.Centre()
        self.Show(True)
       
if __name__ == '__main__':
    app=wx.App()
    Communicate(None, -1, 'Widgets Communicate')       
    app.MainLoop()