mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-21 06:41:00 +00:00
Activate nice Qt style on startup.
This commit is contained in:
parent
be54b80525
commit
8fc5f04b1a
1 changed files with 4 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
|||
Check HTML pages for broken links. This is the GUI client.
|
||||
"""
|
||||
import sys
|
||||
from PyQt4.QtGui import QApplication
|
||||
from PyQt4.QtGui import QApplication, QStyleFactory
|
||||
from linkcheck.gui import LinkCheckerMain
|
||||
|
||||
|
||||
|
|
@ -27,6 +27,9 @@ def main (argv=None):
|
|||
if argv is None:
|
||||
argv = sys.argv
|
||||
app = QApplication(argv)
|
||||
## Look and feel changed to CleanLooks
|
||||
QApplication.setStyle(QStyleFactory.create("Cleanlooks"))
|
||||
QApplication.setPalette(QApplication.style().standardPalette())
|
||||
if app.argc() > 1:
|
||||
url = app.argv()[1]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue