PluginWizardDataUriEncoder.py

changeset 37
833c3ea0ca93
parent 35
20bea809ae09
child 39
3efaeaf599b6
equal deleted inserted replaced
36:6b9c5f07103e 37:833c3ea0ca93
19 # Start-of-Header 19 # Start-of-Header
20 name = "Base64 Data URI Encoder Wizard Plug-in" 20 name = "Base64 Data URI Encoder Wizard Plug-in"
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 21 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
22 autoactivate = True 22 autoactivate = True
23 deactivateable = True 23 deactivateable = True
24 version = "3.0.0" 24 version = "3.1.0"
25 className = "WizardDataUriEncoderPlugin" 25 className = "WizardDataUriEncoderPlugin"
26 packageName = "WizardDataUriEncoder" 26 packageName = "WizardDataUriEncoder"
27 shortDescription = "Wizard for the creation of code for a base64 data URI." 27 shortDescription = "Wizard for the creation of code for a base64 data URI."
28 longDescription = ( 28 longDescription = (
29 """This plug-in implements a wizard to generate code for""" 29 """This plug-in implements a wizard to generate code for"""
141 else: 141 else:
142 from WizardDataUriEncoder.DataUriEncoderWizardDialog import ( 142 from WizardDataUriEncoder.DataUriEncoderWizardDialog import (
143 DataUriEncoderWizardDialog 143 DataUriEncoderWizardDialog
144 ) 144 )
145 dlg = DataUriEncoderWizardDialog(None) 145 dlg = DataUriEncoderWizardDialog(None)
146 if dlg.exec_() == QDialog.Accepted: 146 if dlg.exec() == QDialog.Accepted:
147 code = dlg.getCode() 147 code = dlg.getCode()
148 if code: 148 if code:
149 line, index = editor.getCursorPosition() 149 line, index = editor.getCursorPosition()
150 # It should be done on this way to allow undo 150 # It should be done on this way to allow undo
151 editor.beginUndoAction() 151 editor.beginUndoAction()

eric ide

mercurial