#Arturito core class import gtk import WinMain import WinBtnSetup import configuration_manager from joy_manager import * class Core: RSRC_PATH="rsrc/" def __init__(self,rsrc): print("Core::init()") Core.RSRC_PATH=rsrc print("Resource path: " + Core.RSRC_PATH) self.conf_manager=configuration_manager.Configuration_Manager() self.conf_manager.load_cfg_file() self.conf_manager.print_variables() self.joy=Joy() self.id_counter=0 self.version="Beta 0.8" for item in self.joy.get_joy_list(): id,name,axes,buttons=item if name==self.conf_manager.joy_name: self.joy.init_joy(id) self.winmain=WinMain.WinMain(self) # self.winbtnsetup=WinBtnSetup.WinBtnSetup() gtk.main()