a = Analysis(['GUI.py'],
pathex=['path to project', os.path.join(ntpath.dirname(PyQt5.__file__), 'Qt', 'bin')],
datas=[('edit.svg','.'),('refresh.png','.'),('remove.svg','.'),('unknown.png','.'),('framework.png','.')],
hiddenimports=['sip','hashlib'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='app_name',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
manifest=None,
console=False,
uac_admin=True,
icon='framework.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='Ver1.03')
checkbutton.setStyleSheet("QPushButton {background-color:rgb(0,200,0) ; color: White; border-radius: 3px; height:15%; width:70%} "
"QPushButton:pressed {background-color:rgb(0,150,0) ; }")
class QLabel_alterada(QLabel):
clicked=pyqtSignal()
def __init__(self, parent=None):
QLabel.__init__(self, parent)
def mousePressEvent(self, ev):
self.clicked.emit()
class PaymentForm(forms.Form):
token = forms.CharField(widget=forms.HiddenInput, required=True)
def __init__(self, payment_information, gateway_params, *args, **kwargs):
initial_arguments = kwargs.get('data', None)
if initial_arguments:
token = initial_arguments.get('Token', None)
csrf = initial_arguments.get('csrfmiddlewaretoken', None)
if token:
kwargs.update({'data':{'token':token, 'csrfmiddlewaretoken': csrf }})
super(OmisePaymentForm, self).__init__(*args, **kwargs)
kwargs.update(data = {'token':token, 'csrfmiddlewaretoken': csrf })
def _clean_fields(self):
for name, field in self.fields.items():
# value_from_datadict() gets the data from the data dictionaries.
# Each widget type knows how to retrieve its own data, because some
# widgets split data over several HTML fields.
if field.disabled:
value = self.get_initial_for_field(field, name)
else:
value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name))
collate = QPushButton("Collate")
# Style sheet for button
collate.setStyleSheet("QPushButton {background-color: rgb(51,122,183); color: White; border-radius: 4px;}"
"QPushButton:pressed {background-color:rgb(31,101,163) ; }")