|
@@ -101,10 +101,11 @@ class ChildSettings(digilib.gui.ChildSettings):
|
|
|
pass
|
|
|
|
|
|
class BeeWindow(digilib.gui.WindowBase):
|
|
|
- def __init__(self,host,port):
|
|
|
+ def __init__(self,host,port,af_family):
|
|
|
super(BeeWindow,self).__init__(title="BeeWatch")
|
|
|
self.host = host
|
|
|
self.port = port
|
|
|
+ self.af_family = af_family
|
|
|
self.client = None
|
|
|
self.set_border_width(10)
|
|
|
self.tb = digilib.misc.Container()
|
|
@@ -196,9 +197,10 @@ class BeeWindow(digilib.gui.WindowBase):
|
|
|
return grid
|
|
|
def make_client(self):
|
|
|
client = digilib.network.Client(
|
|
|
- self.host,
|
|
|
- self.port,
|
|
|
- self.child_console.add_msg_threadsafe,
|
|
|
+ host=self.host,
|
|
|
+ port=self.port,
|
|
|
+ af_family=self.af_family,
|
|
|
+ handle_data_func=self.child_console.add_msg_threadsafe,
|
|
|
)
|
|
|
return client
|
|
|
def get_client(self):
|