Skip to content

Commit 4c74bd9

Browse files
YoannQDQnyalldawson
authored andcommittedMar 17, 2023
Populate combo box in code rather than in ui
1 parent d2d7c5b commit 4c74bd9

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed
 

‎python/console/console_settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def __init__(self, parent):
7373
self.parent = parent
7474
self.setupUi(self)
7575

76+
# Set up the formatter combo box
77+
self.formatter.addItems(["autopep8", "black"])
78+
7679
self.listPath = []
7780
self.lineEdit.setReadOnly(True)
7881

‎python/console/console_settings.ui

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -508,16 +508,6 @@
508508
<height>0</height>
509509
</size>
510510
</property>
511-
<item>
512-
<property name="text">
513-
<string>autopep8</string>
514-
</property>
515-
</item>
516-
<item>
517-
<property name="text">
518-
<string>black</string>
519-
</property>
520-
</item>
521511
</widget>
522512
</item>
523513
<item row="1" column="0" colspan="2">

0 commit comments

Comments
 (0)
Please sign in to comment.