def _ExportToPngs( self ): export_object = self._GetExportObject() if export_object is None: return if not isinstance( export_object, HydrusSerialisable.SerialisableList ): self._ExportToPng() return from hydrus.client.gui import ClientGUITopLevelWindowsPanels from hydrus.client.gui import ClientGUISerialisable with ClientGUITopLevelWindowsPanels.DialogNullipotent( self, 'export to pngs' ) as dlg: panel = ClientGUISerialisable.PngsExportPanel( dlg, export_object ) dlg.SetPanel( panel ) dlg.exec()
def _ExportToPng( self ): payload = self._GetExportableURLsString() with ClientGUITopLevelWindowsPanels.DialogNullipotent( self, 'export to png' ) as dlg: panel = ClientGUISerialisable.PngExportPanel( dlg, payload ) dlg.SetPanel( panel ) dlg.exec()
def ExportToPNG(win: QW.QWidget, gallery_seed_log: ClientImportGallerySeeds.GallerySeedLog): payload = GetExportableURLsString(gallery_seed_log) with ClientGUITopLevelWindowsPanels.DialogNullipotent( win, 'export to png') as dlg: panel = ClientGUISerialisable.PNGExportPanel(dlg, payload) dlg.SetPanel(panel) dlg.exec()
def ExportToPNG(win: QW.QWidget, file_seed_cache: ClientImportFileSeeds.FileSeedCache): payload = GetExportableSourcesString(file_seed_cache) with ClientGUITopLevelWindowsPanels.DialogNullipotent( win, 'export to png') as dlg: panel = ClientGUISerialisable.PNGExportPanel(dlg, payload) dlg.SetPanel(panel) dlg.exec()
def _ExportToPng( self ): export_object = self._GetExportObject() if export_object is not None: from hydrus.client.gui import ClientGUITopLevelWindowsPanels from hydrus.client.gui import ClientGUISerialisable with ClientGUITopLevelWindowsPanels.DialogNullipotent( self, 'export to png' ) as dlg: panel = ClientGUISerialisable.PngExportPanel( dlg, export_object ) dlg.SetPanel( panel ) dlg.exec()