예제 #1
0
파일: gui.py 프로젝트: koson/olm-pstat
 def build_window(self):
     GUIBase.build_window(self)
     #now size the window and center it
     sw = self._win.winfo_screenwidth()
     sh = self._win.winfo_screenheight()
     w  = sw*WINDOW_TO_SCREENWIDTH_RATIO
     h  = sh*WINDOW_TO_SCREENHEIGHT_RATIO
     x = (sw - w)/2
     y = (sh - h)/2
     self._win.geometry("%dx%d+%d+%d" % (w,h,x,y))
     self._cv_plot_Xs = []
     self._cv_plot_Ys = []
     self._cv_plot_labels = []
     self._vsweep_mode = None
     self._vsweep_stop = False
예제 #2
0
파일: gui.py 프로젝트: koson/olm-pstat
 def close(self):
     self.cache_settings()
     GUIBase.close(self)