code cleanup

This commit is contained in:
punkrockguy318 2008-06-24 16:43:26 +00:00
parent 656d98c45b
commit b2ef9985fb
1 changed files with 9 additions and 17 deletions

18
gfceu
View File

@ -29,7 +29,7 @@ import os
import pickle import pickle
import shutil import shutil
from optparse import OptionParser from optparse import OptionParser
from subprocess import Popen #from subprocess import Popen
try: try:
import pygtk import pygtk
@ -44,9 +44,6 @@ except ImportError:
# # # # # # # #
# GFCEU Functions
class game_options: class game_options:
# sound # sound
sound_check = True sound_check = True
@ -194,7 +191,7 @@ def find_binary(file):
return None return None
############################################################################## # # # # # # # # # # # # # # # # #
# Globals # Globals
options = None options = None
appconfigdir = os.getenv('HOME') + '/.'+ title appconfigdir = os.getenv('HOME') + '/.'+ title
@ -290,13 +287,13 @@ class GfceuApp:
print 'Try reinstalling the application.' print 'Try reinstalling the application.'
sys.exit(1) sys.exit(1)
#try: try:
print "Using: " + glade_file print "Using: " + glade_file
widgets = gtk.Builder() widgets = gtk.Builder()
widgets.add_from_file(glade_file) widgets.add_from_file(glade_file)
widgets.connect_signals(self) widgets.connect_signals(self)
#except: except:
# self.print_error("Couldn't load the glade UI file", 24) self.print_error("Couldn't load the UI data.", 24)
widgets.get_object("main_window").show_all() widgets.get_object("main_window").show_all()
@ -534,13 +531,8 @@ class GfceuApp:
if __name__ == '__main__': if __name__ == '__main__':
parser = OptionParser(version='%prog '+ version) parser = OptionParser(version='%prog '+ version)
parser.parse_args() parser.parse_args()
app = GfceuApp() app = GfceuApp()