Example #1
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
Example #2
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