def show_image_tree(self, result, image_infos, widths, headers, ok_label='&OK', buttons=False, modal=False): data = listData.files_data_dict(image_infos) dlg = dialogs.ImageTreeDialog(data, listData.DataDict, headers, self, size=(600, dialogs.get_max_height(300))) dlg.SetColumnWidths(*widths) dlg.SetOkLabel(ok_label) dlg.ShowButtons(buttons) if modal or buttons: answer = dlg.ShowModal() result['answer'] = answer == wx.ID_OK else: dlg.Show()
def on_menu_tools_image_inspector(self, event): frame = dialogs.ImageInspectorFrame(self, size=(470, dialogs.get_max_height(510)), icon=images.get_icon('inspector')) frame.Show()
def _set_size(self): #make it eee pc friendly self._width = 400 self._max_height = dialogs.get_max_height() self.SetSize((self._width, min(600, self._max_height))) super(Frame, self).__set_properties()