def __initializeTheControls(self, mainSizer: StaticBoxSizer): """ Initialize the controls. """ # IDs [self.__xId, self.__yId] = PyutUtils.assignID(2) xBox, self.__x = self.__createPositionContainer( 'Frame X Position: ', self.__xId) yBox, self.__y = self.__createPositionContainer( 'Frame Y Position: ', self.__yId) mainSizer.Add(xBox, 0, ALL, DlgDebugDiagramFrame.VERTICAL_GAP) mainSizer.Add(yBox, 0, ALL, DlgDebugDiagramFrame.VERTICAL_GAP)
def _createIssueSelection(self) -> StaticBoxSizer: issueWxID: int = wxNewIdRef() self._issueList: ListBox = ListBox(self, issueWxID, style=LB_MULTIPLE | LB_OWNERDRAW) # noinspection PyUnresolvedReferences self._issueList.Enable(False) sz = StaticBoxSizer(VERTICAL, self, "Repository Issues") sz.Add(self._issueList, BasePanel.PROPORTION_CHANGEABLE, EXPAND) return sz
def _createTodoTaskList(self) -> StaticBoxSizer: taskWxID: int = wxNewIdRef() self._taskList: ListBox = ListBox(self, taskWxID, style=LB_OWNERDRAW | LB_ALWAYS_SB) # noinspection PyUnresolvedReferences self._taskList.Enable(False) sz = StaticBoxSizer(VERTICAL, self, "Todoist Tasks") sz.Add(self._taskList, BasePanel.PROPORTION_CHANGEABLE, EXPAND) self._taskList.SetItems(['Empty']) return sz
def _createMilestoneSelection(self) -> StaticBoxSizer: milestoneSelectionWxId: int = wxNewIdRef() self._milestoneList: ListBox = ListBox(self, milestoneSelectionWxId, style=LB_SINGLE | LB_OWNERDRAW) # noinspection PyUnresolvedReferences self._milestoneList.Enable(False) sz = StaticBoxSizer(VERTICAL, self, "Repository Milestone Titles") sz.Add(self._milestoneList, BasePanel.PROPORTION_CHANGEABLE, EXPAND) self.Bind(EVT_LISTBOX, self._onMilestoneSelected, milestoneSelectionWxId) return sz
def _createRepositorySelection(self) -> StaticBoxSizer: repoSelectionWxId: int = wxNewIdRef() self._repositorySelection: ComboBox = ComboBox(self, repoSelectionWxId, style=CB_DROPDOWN | CB_READONLY) sz = StaticBoxSizer(VERTICAL, self, "Repository List") sz.Add(self._repositorySelection, BasePanel.PROPORTION_NOT_CHANGEABLE, EXPAND) self.__populateRepositories() self.Bind(EVT_COMBOBOX, self._onRepositorySelected, id=repoSelectionWxId) return sz