forked from M-Labs/artiq
1
0
Fork 0

gui: show server in window title

This commit is contained in:
Sebastien Bourdeauducq 2015-08-25 00:37:49 +08:00
parent b7120aa0ac
commit 1c96f258b1
1 changed files with 3 additions and 3 deletions

View File

@ -45,10 +45,10 @@ def get_argparser():
class MainWindow(QtGui.QMainWindow):
def __init__(self, app):
def __init__(self, app, server):
QtGui.QMainWindow.__init__(self)
self.setWindowIcon(QtGui.QIcon(os.path.join(data_dir, "icon.png")))
self.setWindowTitle("ARTIQ")
self.setWindowTitle("ARTIQ - {}".format(server))
self.exit_request = asyncio.Event()
def closeEvent(self, *args):
@ -77,7 +77,7 @@ def main():
args.server, args.port_control, "master_schedule"))
atexit.register(lambda: schedule_ctl.close_rpc())
win = MainWindow(app)
win = MainWindow(app, args.server)
area = dockarea.DockArea()
smgr.register(area)
smgr.register(win)