예제 #1
0
def main():
    while True:
        menu_choice = menus.main(screen, background, main_menu)
        if menu_choice == 1:
            screen.blit(background, (0, 0))
            game_logic.main(screen, background, clock, ball, left_bat, right_bat, title_font)
        elif menu_choice == 2:
            difficulty = menus.main(screen, background, difficulty_menu)
            if difficulty == 1:
                ball.speed = 5
            elif difficulty == 2:
                ball.speed = 6
            elif difficulty == 3:
                ball.speed = 7
        elif menu_choice == 3:
            pass
        elif menu_choice == 'quit':
            break
예제 #2
0
    def __init__(self, appname=None, apikey=None, settings=None, mode=None):
        self.appname=appname
        self.apikey=apikey
        if settings is None:
            self.settings="CIA.settings"
        else:
            self.settings = settings
        self.mainframe = tk.Tk()
        menus.main(self.mainframe)
        self.dataframe=tk.Frame(self.mainframe)
        self.dataframe.grid(column = 0, columnspan=3)

        self.interactionframe=tk.Frame(self.mainframe)
        self.interactionframe.grid(column=3)

        self.builddataframe()
        self.buildinteractionframe()
        root.mainloop()
예제 #3
0
def main ():
    """"""

    RUNNING = True

    while RUNNING:

        dispdat.osclear()

        RUNNING = menus.main()
예제 #4
0
def main():
    """"""

    RUNNING = True

    while RUNNING:

        dispdat.osclear()

        RUNNING = menus.main()
예제 #5
0
import menus

menus.main()
예제 #6
0
#!/usr/bin/env python
'''
Created on Sep 27, 2012

@author: josh
'''

import menus
import sys

game_over = False
#simple loop to control the game operation
#game runs until the user selects to quit the game from the menus.main() module
while game_over != True:
	game_over = menus.main()


sys.exit()
예제 #7
0
# IMPORTS
# system
import sys
# xbmc
import xbmcaddon
# custom
lib_path = xbmcaddon.Addon('plugin.program.isybrowse'). \
    getAddonInfo('path') + '/resources/lib/'
sys.path.append(lib_path)
import shared
import actions
import menus

# MAIN LOOP
if __name__ == "__main__":
    # initialize shared library
    shared.initialize(sys.argv)

    if shared.__params__['cmd'] is not None:
        # an action was requested
        actions.DoAction(shared.__params__['addr'], shared.__params__['cmd'])
        actions.RefreshWindow()

    else:
        # a folder was requested
        menu = menus.main(shared.__id__, shared.__params__['browsing'],
                          shared.events_enabled(), shared.__params__['addr'])
        menu.sendToXbmc()
        menu.show()
예제 #8
0
#!/usr/bin/env python
'''
Created on Sep 27, 2012

@author: josh
'''

import menus
#import wx
#program = wx.App()
#window=wx.Frame(menus.Main())
#window.Show()
#program.MainLoop()

gameover=False
while not gameover:
    menus.main()