d515d0a41c
git-svn-id: http://www.neo1973-germany.de/svn@92 46df4e5c-bc4e-4628-a0fc-830ba316316d
46 lines
1.4 KiB
Python
Executable file
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()
|