tinc-gui: Fix GetListCtrl method name in SuperListCtrl
wxPython wrongly expects camelcase method names, this however is against PEP8
This commit is contained in:
parent
53333d6d0d
commit
e92bb7d1dd
1 changed files with 11 additions and 11 deletions
22
gui/tinc-gui
22
gui/tinc-gui
|
@ -334,7 +334,7 @@ class SuperListCtrl(wx.ListCtrl, ColumnSorterMixin, ListCtrlAutoWidthMixin):
|
||||||
ListCtrlAutoWidthMixin.__init__(self)
|
ListCtrlAutoWidthMixin.__init__(self)
|
||||||
ColumnSorterMixin.__init__(self, 16)
|
ColumnSorterMixin.__init__(self, 16)
|
||||||
|
|
||||||
def get_list_ctrl(self):
|
def GetListCtrl(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
||||||
|
@ -603,16 +603,6 @@ class NetPage(wx.Notebook):
|
||||||
|
|
||||||
|
|
||||||
class MainWindow(wx.Frame):
|
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):
|
def __init__(self, parent, id, title):
|
||||||
wx.Frame.__init__(self, parent, id, title)
|
wx.Frame.__init__(self, parent, id, title)
|
||||||
|
|
||||||
|
@ -634,6 +624,16 @@ class MainWindow(wx.Frame):
|
||||||
self.SetMenuBar(menubar)
|
self.SetMenuBar(menubar)
|
||||||
self.Show()
|
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()
|
app = wx.App()
|
||||||
mw = MainWindow(None, -1, 'Tinc GUI')
|
mw = MainWindow(None, -1, 'Tinc GUI')
|
||||||
|
|
Loading…
Add table
Reference in a new issue