Skip to content

Commit 284c2a4

Browse files
committed
TR update, second round
1 parent ec3d2f0 commit 284c2a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python-menus-toolbars/sample-app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def _createToolBars(self):
9595
editToolBar.addAction(self.cutAction)
9696
# Widgets
9797
self.fontSizeSpinBox = QSpinBox()
98+
self.fontSizeSpinBox.setFocusPolicy(Qt.NoFocus)
9899
editToolBar.addWidget(self.fontSizeSpinBox)
99100

100101
def _createStatusBar(self):
@@ -169,15 +170,15 @@ def _connectActions(self):
169170
self.openAction.triggered.connect(self.openFile)
170171
self.saveAction.triggered.connect(self.saveFile)
171172
self.exitAction.triggered.connect(self.close)
172-
# Connect Open Recent to dynamically populate it
173-
self.openRecentMenu.aboutToShow.connect(self.populateOpenRecent)
174173
# Connect Edit actions
175174
self.copyAction.triggered.connect(self.copyContent)
176175
self.pasteAction.triggered.connect(self.pasteContent)
177176
self.cutAction.triggered.connect(self.cutContent)
178177
# Connect Help actions
179178
self.helpContentAction.triggered.connect(self.helpContent)
180179
self.aboutAction.triggered.connect(self.about)
180+
# Connect Open Recent to dynamically populate it
181+
self.openRecentMenu.aboutToShow.connect(self.populateOpenRecent)
181182

182183
# Slots
183184
def newFile(self):

0 commit comments

Comments
 (0)