equal
deleted
inserted
replaced
29 from util.Zeroconf import * |
29 from util.Zeroconf import * |
30 |
30 |
31 import connectors |
31 import connectors |
32 |
32 |
33 service_type = '_PYRO._tcp.local.' |
33 service_type = '_PYRO._tcp.local.' |
|
34 |
34 |
35 |
35 class AutoWidthListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): |
36 class AutoWidthListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): |
36 def __init__(self, parent, id, name, pos=wx.DefaultPosition, |
37 def __init__(self, parent, id, name, pos=wx.DefaultPosition, |
37 size=wx.DefaultSize, style=0): |
38 size=wx.DefaultSize, style=0): |
38 wx.ListCtrl.__init__(self, parent, id, pos, size, style, name=name) |
39 wx.ListCtrl.__init__(self, parent, id, pos, size, style, name=name) |
40 |
41 |
41 [ID_DISCOVERYDIALOG, ID_DISCOVERYDIALOGSTATICTEXT1, |
42 [ID_DISCOVERYDIALOG, ID_DISCOVERYDIALOGSTATICTEXT1, |
42 ID_DISCOVERYDIALOGSERVICESLIST, ID_DISCOVERYDIALOGREFRESHBUTTON, |
43 ID_DISCOVERYDIALOGSERVICESLIST, ID_DISCOVERYDIALOGREFRESHBUTTON, |
43 ID_DISCOVERYDIALOGLOCALBUTTON, ID_DISCOVERYDIALOGIPBUTTON, |
44 ID_DISCOVERYDIALOGLOCALBUTTON, ID_DISCOVERYDIALOGIPBUTTON, |
44 ] = [wx.NewId() for _init_ctrls in range(6)] |
45 ] = [wx.NewId() for _init_ctrls in range(6)] |
|
46 |
45 |
47 |
46 class DiscoveryDialog(wx.Dialog, listmix.ColumnSorterMixin): |
48 class DiscoveryDialog(wx.Dialog, listmix.ColumnSorterMixin): |
47 |
49 |
48 def _init_coll_MainSizer_Items(self, parent): |
50 def _init_coll_MainSizer_Items(self, parent): |
49 parent.AddWindow(self.staticText1, 0, border=20, flag=wx.TOP|wx.LEFT|wx.RIGHT|wx.GROW) |
51 parent.AddWindow(self.staticText1, 0, border=20, flag=wx.TOP|wx.LEFT|wx.RIGHT|wx.GROW) |