X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=gui%2Ftinc-gui;h=4652096b2294a4eb5f9d8335f92f49864ebdfdc4;hp=f135a0127ff054e2b2c5f764e16388d287084f98;hb=e92bb7d1dd7adc02503e3ee795e53b15634df570;hpb=53333d6d0d870de6801352bda106286255f14319 diff --git a/gui/tinc-gui b/gui/tinc-gui index f135a012..4652096b 100755 --- a/gui/tinc-gui +++ b/gui/tinc-gui @@ -334,7 +334,7 @@ class SuperListCtrl(wx.ListCtrl, ColumnSorterMixin, ListCtrlAutoWidthMixin): ListCtrlAutoWidthMixin.__init__(self) ColumnSorterMixin.__init__(self, 16) - def get_list_ctrl(self): + def GetListCtrl(self): return self @@ -603,16 +603,6 @@ class NetPage(wx.Notebook): 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) @@ -634,6 +624,16 @@ class MainWindow(wx.Frame): 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')