|
|
|
@ -9,7 +9,7 @@ import sudsds, time, sys
|
|
|
|
|
|
|
|
|
|
from TrayIcon import TrayIcon
|
|
|
|
|
|
|
|
|
|
from more import show_question, get_sid, get_view_params
|
|
|
|
|
from more import get_sid, get_view_params
|
|
|
|
|
from MainClass import ApiClient
|
|
|
|
|
from calculate.consolegui.datavars import DataVarsGui
|
|
|
|
|
from pid_information import client_pid_info
|
|
|
|
@ -31,7 +31,7 @@ class SelectedMethodWgt(QtGui.QWidget):
|
|
|
|
|
self.setWindowIcon(QtGui.QIcon('/usr/share/pixmaps/calculate3.png'))
|
|
|
|
|
|
|
|
|
|
if self.connect():
|
|
|
|
|
return
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
# definition of screen resolution
|
|
|
|
|
prim_screen = app.desktop().primaryScreen()
|
|
|
|
|
d_size = app.desktop().screenGeometry(prim_screen).size()
|
|
|
|
@ -227,8 +227,7 @@ class ToolTabWidget(QtGui.QTabWidget):
|
|
|
|
|
self.setMinimumWidth(450)
|
|
|
|
|
|
|
|
|
|
self.setWindowTitle(self.Name)
|
|
|
|
|
self.setStyleSheet(
|
|
|
|
|
'''
|
|
|
|
|
self.setStyleSheet('''
|
|
|
|
|
QTabBar::tab:last {
|
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
|
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
|
|
|
@ -237,8 +236,12 @@ class ToolTabWidget(QtGui.QTabWidget):
|
|
|
|
|
border-bottom-color: #C2C7CB; border-top-left-radius: 4px;
|
|
|
|
|
border-top-right-radius: 4px; padding-left: 3px;
|
|
|
|
|
|
|
|
|
|
margin-left: 3px; margin-bottom: 5px; margin-top: 2px; width: 18px;
|
|
|
|
|
}''')
|
|
|
|
|
margin-left: 3px; margin-bottom: 5px; margin-top: 2px; width: 18px;}
|
|
|
|
|
QTabBar::tab:last::hover {background:
|
|
|
|
|
qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
|
stop: 0 #E9E9E9, stop: 0.4 #E5E5E5,
|
|
|
|
|
stop: 0.5 #E1E1E1, stop: 1.0 #DDDDDD);}
|
|
|
|
|
''')
|
|
|
|
|
self.setWindowIcon(QtGui.QIcon('/usr/share/pixmaps/calculate3.png'))
|
|
|
|
|
|
|
|
|
|
self.show()
|
|
|
|
@ -314,6 +317,10 @@ class ToolTabWidget(QtGui.QTabWidget):
|
|
|
|
|
self.insertTab(self.count() - 1, widget, self.gui_icon , \
|
|
|
|
|
self.new_con_txt)
|
|
|
|
|
self.setCurrentIndex(self.count() - 2)
|
|
|
|
|
if self.currentWidget().ClientObj.client:
|
|
|
|
|
self.tabbar.setTabEnabled(self.count() - 1, True)
|
|
|
|
|
else:
|
|
|
|
|
self.tabbar.setTabEnabled(self.count() - 1, False)
|
|
|
|
|
|
|
|
|
|
def rename_tab(self, text = None, ind = None):
|
|
|
|
|
if not text:
|
|
|
|
|