Exemple #1
0
    def __init__(self, pRoot_Process):
        self.RootProcess = pRoot_Process

        # Set the correct screen size
        self.RootProcess.DISPLAY = pygame.Surface((300, 350))

        self.FolderList = UI.VerticalListWithDescription(
            pygame.Rect(0, 24, 300, 15))
        ButtonsList = list()
        ButtonsList.append(UI.Button(pygame.Rect(0, 0, 0, 0), "Select", 14))
        ButtonsList.append(UI.Button((0, 0, 0, 0), "New", 14))

        self.OptionsBar = UI.ButtonsBar((0, 0, 0, 0), ButtonsList)
        self.RootProcess.TITLEBAR_TEXT = "Save File"
        self.Inputbox_FileName = UI.InputBox(5, 25, 250, 25, "Default", 14)

        self.FileListUpdated = False
        self.FileListUpdate = False
        self.EnterFileNameEnabled = False
Exemple #2
0
    def __init__(self, pRootProcess):
        self.RootProcess = pRootProcess

        # Set the correct screen size
        self.RootProcess.DISPLAY = pygame.Surface((300, 350))

        self.FolderList = UI.VerticalListWithDescription(
            pygame.Rect(0, 24, 300, 15))

        ButtonsList = list()
        ButtonsList.append(UI.Button(pygame.Rect(0, 0, 0, 0), "Select", 12))

        self.OptionsBar = UI.ButtonsBar((0, 0, 0, 0), ButtonsList)
        self.RootProcess.TITLEBAR_TEXT = "Open File"
        self.FileListUpdated = False
Exemple #3
0
def Initialize():
    global track_list
    global TopBarControls
    global DropDownFileMenu

    # Add all widgets
    ButtonsList = list()
    ButtonsList.append(UI.Button(pygame.Rect(0, 0, 0, 0), "File", 14))
    TopBarControls = UI.ButtonsBar((3, 5, Core.MAIN.ScreenWidth, 32),
                                   ButtonsList)
    DropDownFileMenuList = (("Load", DropDownButtonsActions_LoadButton),
                            ("Save", DropDownButtonsActions_SaveButton),
                            ("New File", DropDownButtonsActions_NewFileButton),
                            ("About", DropDownButtonsActions_AboutButton),
                            ("Settings",
                             DropDownButtonsActions_SettingsButton))
    DropDownFileMenu = UI.DropDownMenu(pygame.Rect(10, 35, 120, 65),
                                       DropDownFileMenuList)

    OptionsBar.Initialize()
    EditorBar.Initialize()
    SoundCacheMessage.Initialize()

    NewMusicFile()