WizardDataUriEncoder/DataUriEncoderWizardDialog.py

changeset 3
f01e48994421
parent 2
f33d9d82ae69
child 12
7d05e63f3cb1
equal deleted inserted replaced
2:f33d9d82ae69 3:f01e48994421
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 """ 3 """
4 Module implementing DataUriEncoderWizardDialog. 4 Module implementing the base64 data URI encoder wizard dialog.
5 """ 5 """
6 6
7 import os 7 import os
8 import mimetypes 8 import mimetypes
9 import base64 9 import base64
55 """ 55 """
56 56
57 57
58 class DataUriEncoderWizardDialog(QDialog, Ui_DataUriEncoderWizardDialog): 58 class DataUriEncoderWizardDialog(QDialog, Ui_DataUriEncoderWizardDialog):
59 """ 59 """
60 Class documentation goes here. 60 Class implementing the base64 data URI encoder wizard dialog.
61 """ 61 """
62 def __init__(self, parent=None): 62 def __init__(self, parent=None):
63 """ 63 """
64 Constructor 64 Constructor
65 65
123 @param index index of the selected entry (integer) 123 @param index index of the selected entry (integer)
124 """ 124 """
125 if index in [1, 4]: 125 if index in [1, 4]:
126 self.encryptCheckBox.setChecked(False) 126 self.encryptCheckBox.setChecked(False)
127 self.dataCheckBox.setChecked(True) 127 self.dataCheckBox.setChecked(True)
128 elif index in [2, 3, 5, 6]: 128 elif index in [0, 2, 3, 5, 6]:
129 self.encryptCheckBox.setChecked(False) 129 self.encryptCheckBox.setChecked(False)
130 self.dataCheckBox.setChecked(False) 130 self.dataCheckBox.setChecked(False)
131 131
132 @pyqtSlot() 132 @pyqtSlot()
133 def on_encodeButton_clicked(self): 133 def on_encodeButton_clicked(self):

eric ide

mercurial