Skip to content

Commit a854980

Browse files
Merge pull request #2923 from HelioGuilherme66/fix_broken_code_editor
Fix broken Code Editor launch
2 parents e009781 + 24c15f1 commit a854980

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Likewise, the current version of wxPython, is 4.2.2, but RIDE is known to work w
4040

4141
`pip install -U robotframework-ride`
4242

43-
(3.8 <= python <= 3.13) Install current development version (**2.2dev9**) with:
43+
(3.8 <= python <= 3.13) Install current development version (**2.2dev10**) with:
4444

4545
`pip install -U https://github.com/robotframework/RIDE/archive/develop.zip`
4646

src/robotide/application/releasenotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def set_content(self, html_win, content):
231231
<pre class="literal-block">python -m robotide.postinstall -install</pre>
232232
<p>or</p>
233233
<pre class="literal-block">ride_postinstall.py -install</pre>
234-
<p>RIDE {VERSION} was released on 20/February/2025.</p>
234+
<p>RIDE {VERSION} was released on 21/February/2025.</p>
235235
<!-- <br/>
236236
<h3>May The Fourth Be With You!</h3>
237237
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>

src/robotide/editor/customsourceeditor.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import wx
2424
import wx.stc as stc
25-
from .pythoneditor import PythonSTC
25+
from robotide.editor.pythoneditor import PythonSTC
2626
from wx import Colour
2727

2828
# ---------------------------------------------------------------------------
@@ -37,8 +37,8 @@
3737
# ----------------------------------------------------------------------
3838

3939
class SourceCodeEditor(PythonSTC):
40-
def __init__(self, parent, style=wx.BORDER_NONE):
41-
PythonSTC.__init__(self, parent, -1, style=style)
40+
def __init__(self, parent, options, style=wx.BORDER_NONE):
41+
PythonSTC.__init__(self, parent, -1, options, style=style)
4242
self.SetUpEditor()
4343

4444
# Some methods to make it compatible with how the wxTextCtrl is used
@@ -240,9 +240,9 @@ def __init__(self, parent, main_frame, filepath=None):
240240
self.path = filepath
241241
wx.Panel.__init__(self, parent, size=(1, 1))
242242
self.mainFrame = main_frame
243-
self.editor = SourceCodeEditor(self)
243+
self.editor = SourceCodeEditor(self, options={'tab markers':True, 'fold symbols':2})
244244
self.editor.RegisterModifiedEvent(self.on_code_modified)
245-
245+
parent.SetName(f'Code Editor: {filepath}')
246246
"""
247247
self.SetBackgroundColour(Colour(200, 222, 40))
248248
self.SetOwnBackgroundColour(Colour(200, 222, 40))
@@ -528,8 +528,9 @@ def get_config():
528528

529529

530530
def main(filepath, frame=None):
531-
__name__ = 'Editor'
531+
__name__ = f'Code Editor: {filepath}'
532532
app = wx.App()
533+
app.SetAppDisplayName(__name__)
533534
if frame is None:
534535
frame = wx.Frame(None)
535536
CodeEditorPanel(frame, None, filepath)

src/robotide/editor/pythoneditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
class PythonSTC(stc.StyledTextCtrl):
4747

4848
def __init__(self, parent, idd, options: dict, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0):
49-
stc.StyledTextCtrl.__init__(self, parent, idd, pos, size, style)
49+
stc.StyledTextCtrl.__init__(self, parent=parent, id=idd, pos=pos, size=size, style=style)
5050

5151
# self.CmdKeyAssign(ord('B'), stc.STC_SCMOD_CTRL, stc.STC_CMD_ZOOMIN)
5252
# self.CmdKeyAssign(ord('N'), stc.STC_SCMOD_CTRL, stc.STC_CMD_ZOOMOUT)

src/robotide/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
#
1616
# Automatically generated by `tasks.py`.
1717

18-
VERSION = 'v2.2dev9'
18+
VERSION = 'v2.2dev10'

0 commit comments

Comments
 (0)