ListCtrlAutoWidthMixin.__init__(self)
ColumnSorterMixin.__init__(self, 16)
- def get_list_ctrl(self):
+ def GetListCtrl(self):
return self
class MainWindow(wx.Frame):
- def on_quit(self, event):
- app.ExitMainLoop()
-
- def on_timer(self, event):
- vpn.refresh()
- self.np.nodes.refresh()
- self.np.subnets.refresh()
- self.np.edges.refresh()
- self.np.connections.refresh()
-
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id, title)
self.SetMenuBar(menubar)
self.Show()
+ def on_quit(self, event):
+ app.ExitMainLoop()
+
+ def on_timer(self, event):
+ vpn.refresh()
+ self.np.nodes.refresh()
+ self.np.subnets.refresh()
+ self.np.edges.refresh()
+ self.np.connections.refresh()
+
app = wx.App()
mw = MainWindow(None, -1, 'Tinc GUI')