File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,9 @@ def __init__(self, parent=None):
281
281
sizePolicy .setVerticalStretch (0 )
282
282
sizePolicy .setHeightForWidth (self .textEditOut .sizePolicy ().hasHeightForWidth ())
283
283
self .textEditOut .setSizePolicy (sizePolicy )
284
+
285
+ self .textEditOut .setVerticalScrollBarPolicy (Qt .ScrollBarAsNeeded )
286
+ self .edit .setVerticalScrollBarPolicy (Qt .ScrollBarAsNeeded )
284
287
285
288
self .clearButton .triggered .connect (self .textEditOut .clearConsole )
286
289
self .optionsButton .triggered .connect (self .openSettings )
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def __init__(self, parent=None):
106
106
#self.setEdgeColumn(80)
107
107
#self.setEdgeColor(QColor("#FF0000"))
108
108
109
- self .SendScintilla (QsciScintilla .SCI_SETWRAPMODE , 2 )
109
+ self .setWrapMode (QsciScintilla .WrapCharacter )
110
110
self .SendScintilla (QsciScintilla .SCI_SETHSCROLLBAR , 0 )
111
111
112
112
self .runShortcut = QShortcut (QKeySequence (Qt .CTRL + Qt .Key_E ), self )
Original file line number Diff line number Diff line change @@ -92,13 +92,12 @@ def __init__(self, parent=None):
92
92
# Use raw message to Scintilla here (all messages are documented
93
93
# here: http://www.scintilla.org/ScintillaDoc.html)
94
94
self .SendScintilla (QsciScintilla .SCI_SETHSCROLLBAR , 0 )
95
- self .SendScintilla (QsciScintilla .SCI_SETVSCROLLBAR , 1 )
96
95
97
96
# not too small
98
97
#self.setMinimumSize(500, 300)
99
98
self .setMinimumHeight (50 )
100
-
101
- self .SendScintilla (QsciScintilla .SCI_SETWRAPMODE , 2 )
99
+
100
+ self .setWrapMode (QsciScintilla .WrapCharacter )
102
101
self .SendScintilla (QsciScintilla .SCI_EMPTYUNDOBUFFER )
103
102
104
103
## Disable command key
You can’t perform that action at this time.
0 commit comments