def OnInit(self): self.frame = flex_3d_frame(None, "DIALS reflections viewer _") self.upper_panel = flex_arr_img_panel(self.frame) self.data_grid = MyGrid(self.frame) self.frame.frame_ini_img(self.upper_panel, self.data_grid) return True
class show_tabl_2fr_wx_app(wx.App): def OnInit(self): self.ImgFrame = flex_3d_frame(None, "DIALS reflections viewer IMG") self.flex_panel = flex_arr_img_panel(self.ImgFrame) self.ImgFrame.frame_ini_img(self.flex_panel) self.ImgFrame.table_exist = True self.GridFrame = grid_frame(None, "DIALS reflections viewer Grd") self.info_panel = flex_arr_img_panel(self.GridFrame) self.data_grid = MyGrid(self.GridFrame) self.GridFrame.frame_ini_img(self.flex_panel, self.data_grid) return True def in_tabl(self, table, two_windows): self.data_grid.ini_n_intro(table) if two_windows: print("two_windows =", two_windows) self.flex_panel.ini_n_intro(table) self.info_panel.ini_n_intro(table) self.GridFrame.Show() self.ImgFrame.Show() else: self.flex_panel.ini_n_intro(table) self.ImgFrame.Show()
def OnInit(self): self.ImgFrame = flex_3d_frame(None, "DIALS reflections viewer IMG") self.flex_panel = flex_arr_img_panel(self.ImgFrame) self.ImgFrame.frame_ini_img(self.flex_panel) self.ImgFrame.table_exist = True self.GridFrame = grid_frame(None, "DIALS reflections viewer Grd") self.info_panel = flex_arr_img_panel(self.GridFrame) self.data_grid = MyGrid(self.GridFrame) self.GridFrame.frame_ini_img(self.flex_panel, self.data_grid) return True
class show_tabl_1fr_wx_app(wx.App): def OnInit(self): self.frame = flex_3d_frame(None, "DIALS reflections viewer _") self.upper_panel = flex_arr_img_panel(self.frame) self.data_grid = MyGrid(self.frame) self.frame.frame_ini_img(self.upper_panel, self.data_grid) return True def in_tabl(self, table, two_windows): # if not two_windows: self.upper_panel.ini_n_intro(table) self.data_grid.ini_n_intro(table) self.SetTopWindow(self.frame) self.frame.Show()