SF.net SVN: fclient:[820] trunk/fclient/src/fclient/fclient.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-30 22:12:42
|
Revision: 820
http://fclient.svn.sourceforge.net/fclient/?rev=820&view=rev
Author: jUrner
Date: 2008-07-30 22:12:50 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
add support for css
Modified Paths:
--------------
trunk/fclient/src/fclient/fclient.py
Modified: trunk/fclient/src/fclient/fclient.py
===================================================================
--- trunk/fclient/src/fclient/fclient.py 2008-07-30 10:49:43 UTC (rev 819)
+++ trunk/fclient/src/fclient/fclient.py 2008-07-30 22:12:50 UTC (rev 820)
@@ -30,9 +30,18 @@
##self.userData.activateWindow()
pass
-
def main():
+ # parse commandline options
+ userHasStyleSheet = False
+ for arg in sys.argv:
+ arg = arg.lower()
+ if arg.startswith('-stylesheet=') or arg.startswith('-stylesheet '):
+ userHasStyleSheet = True
+ if not userHasStyleSheet: # use our own
+ sys.argv.append('-stylesheet=%s' % config.FcDefaultStyleSheet)
+
+ # start single application server
singleApp = SingleApp(
host=config.fcSettings.value('SingleAppHost'),
port=config.fcSettings.value('SingleAppPort'),
@@ -51,6 +60,7 @@
dlg.exec_()
else:
+ # start gui
app = QtGui.QApplication(sys.argv)
mainWindow = MainWindow()
singleApp.userData = mainWindow
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|