def _ExportToPngs(self): export_object = self._GetExportObject() if export_object is None: return if not isinstance(export_object, HydrusSerialisable.SerialisableList): self._ExportToPng() return import ClientGUITopLevelWindows import ClientGUISerialisable with ClientGUITopLevelWindows.DialogNullipotent( self, 'export to pngs') as dlg: panel = ClientGUISerialisable.PngsExportPanel(dlg, export_object) dlg.SetPanel(panel) dlg.ShowModal()
def _ExportToPng(self): payload = self._GetExportableSourcesString() with ClientGUITopLevelWindows.DialogNullipotent( self, 'export to png') as dlg: panel = ClientGUISerialisable.PngExportPanel(dlg, payload) dlg.SetPanel(panel) dlg.ShowModal()
def _ExportToPng( self ): export_object = self._GetExportObject() if export_object is not None: import ClientGUITopLevelWindows import ClientGUISerialisable with ClientGUITopLevelWindows.DialogNullipotent( self, 'export to png' ) as dlg: panel = ClientGUISerialisable.PngExportPanel( dlg, export_object ) dlg.SetPanel( panel ) dlg.ShowModal()