Пример #1
0
 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()
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
    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()