Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
fixed set the application GUI style QStyleFactory #151
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Dec 29, 2016
1 parent 6319ffc commit f8c2f32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Version 0.8.4
- fixed logging name from jskeylogger plugin
- fixed exclude from Network-manager by interface #149
- added tables for logging plugins HTTP-request, PumpkinProxy, HTTP-auth
- fixed set the application GUI style QStyleFactory #151

Version 0.8.3
-------------
Expand Down
1 change: 1 addition & 0 deletions core/config/commits/Lcommits.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ master:
{ changelog : 'fixed logging name from jskeylogger plugin' },
{ changelog : 'fixed exclude from Network-manager by interface #149' },
{ changelog : 'added tables for logging plugins HTTP-request, PumpkinProxy, HTTP-auth' },
{ changelog : 'fixed set the application GUI style QStyleFactory #151' },
]

WiFiPumpkin083:
Expand Down
11 changes: 3 additions & 8 deletions wifi-pumpkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@
exit('[!] WiFi-Pumpkin need Python 2 :(')

def checkAppQTDesigner(style):
from PyQt4.QtGui import QMessageBox
global main
if 'gtk+' in str(style).lower():
QMessageBox.warning(None,'warning: bug GUI Qt::style ',
"\nPyQt4 app looks different when running with root, because of that the GUI does not work 100%,"
" some features not work. I don't find anything code or settings for fix this bug "
"(if you have any solution for this send me feedback :D).\n\n"
'if you want keep the normal user style, run app with "sudo".')
exit(-1)
main.setStyle(QStyleFactory.create('Plastique'))

if __name__ == '__main__':
from core.loaders.checker.check_depen import check_dep_pumpkin,RED,ENDC
Expand All @@ -43,7 +38,7 @@ def checkAppQTDesigner(style):
if not getuid() == 0:
exit('[{}!{}] WiFi-Pumpkin must be run as root.'.format(RED,ENDC))

from PyQt4.QtGui import QApplication,QIcon
from PyQt4.QtGui import QApplication,QIcon,QStyleFactory
main = QApplication(argv)
checkAppQTDesigner(main.style().objectName())

Expand Down

0 comments on commit f8c2f32

Please sign in to comment.