neo1973-germany/SettingsGUI/trunk/src/settings
2008-07-31 00:22:42 +00:00

46 lines
1.4 KiB
Python
Executable file

#!/usr/bin/python
"""
* settings-gui.py - script to start the application
* (C) 2007 by Kristian Mueller <kristian-m@kristian-m.de>
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
import gtk
from settingsgui.SettingsGUI import *
def main():
gobject.timeout_add(500, SettingGUI.create_UI) # every 1/2 second
try:
if gtk.gtk_version[0] == 2:
gtk.gdk.threads_init()
except:
pass
gtk.gdk.threads_enter()
gtk.main()
gtk.gdk.threads_leave()
if (__name__ == '__main__'):
#print "reparsing GTK theme"
#print gtk.rc_parse('/usr/share/themes/Moko/gtk-2.0/gtkrc')
#print gtk.rc_reparse_all()
#print "done."
gtk.gdk.threads_init()
gtk.gdk.threads_enter()
SettingGUI = SettingsGUI()
main()