Added a font size setting for the Python editor.
This commit is contained in:
parent
629410f529
commit
df93d906ce
|
@ -81,6 +81,9 @@ def open(filename):
|
||||||
# Set the margin to be at 119 characters instead of 79
|
# Set the margin to be at 119 characters instead of 79
|
||||||
codePane.modes.get(RightMarginMode).position = Settings.max_line_length
|
codePane.modes.get(RightMarginMode).position = Settings.max_line_length
|
||||||
|
|
||||||
|
# Set the font size of the Python editor
|
||||||
|
codePane.font_size = Settings.font_size
|
||||||
|
|
||||||
codePane.setObjectName("cqCodePane_" + os.path.splitext(os.path.basename(filename))[0])
|
codePane.setObjectName("cqCodePane_" + os.path.splitext(os.path.basename(filename))[0])
|
||||||
|
|
||||||
mdi = mw.findChild(QtGui.QMdiArea)
|
mdi = mw.findChild(QtGui.QMdiArea)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
execute_on_save = False # Automatically execute a script every time you save
|
execute_on_save = False # Automatically execute a script every time you save
|
||||||
use_external_editor = False # Automatically reloads and executes a file when an external change is made
|
use_external_editor = False # Automatically reloads and executes a file when an external change is made
|
||||||
max_line_length = 79 # The number of characters per line that is allowed before a warning is given
|
max_line_length = 79 # The number of characters per line that is allowed before a warning is given
|
||||||
|
font_size = 10 # Sets the font size of the Python editor
|
||||||
|
|
Loading…
Reference in New Issue
Block a user