Skip to content

Commit 2012b1b

Browse files
More wxPython 4.1 fixes (#2231)
* More wxPython 4.1 conditions * Fix spelling
1 parent a308348 commit 2012b1b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/robotide/action/actioninfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,6 @@ def _find_position_in_menu(self, menu):
296296
return None
297297

298298
def _get_menu_item_name(self, item):
299-
if wx.VERSION < (4,1,0):
299+
if wx.VERSION < (4, 1, 0):
300300
return self._shortcut_remover.split(item.GetLabel())[0]
301301
return self._shortcut_remover.split(item.GetItemLabel())[0]

src/robotide/application/releasenotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _create_view(self):
123123
<li>Block indent in Text Editor (TAB on block of selected text)</li>
124124
<li>Ctrl-number with number, 1-5 also working on Text Editor:<ol><li>create scalar variable</li><li>create list variable</li>
125125
<li>Comment line</li><li>Uncomment line</li><li>create dictionary variable</li></ol></li>
126-
<li>Persistance of the position and state of detached panels, File Explorer and Test Suites</li>
126+
<li>Persistence of the position and state of detached panels, File Explorer and Test Suites</li>
127127
<li>File Explorer and Test Suites panels are now Plugins and can be disabled or enabled and made Visible with F11 and F12</li>
128128
<li>File Explorer now shows selected file when RIDE starts</li>
129129
</ul>

src/robotide/contrib/testrunner/testrunnerplugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,10 @@ def _AppendTextMessageLog(self, textctrl, string, source="stdout", enc=True):
618618

619619
new_text_end = textctrl.GetLength()
620620

621-
textctrl.StartStyling(new_text_start, 0x1f)
621+
if wx.VERSION < (4, 1, 0):
622+
textctrl.StartStyling(new_text_start, 0x1f)
623+
else:
624+
textctrl.StartStyling(new_text_start)
622625
if source == "stderr":
623626
textctrl.SetStyling(new_text_end-new_text_start, STYLE_STDERR)
624627

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<li>Block indent in Text Editor (TAB on block of selected text)</li>
6464
<li>Ctrl-number with number, 1-5 also working on Text Editor:<ol><li>create scalar variable</li><li>create list variable</li>
6565
<li>Comment line</li><li>Uncomment line</li><li>create dictionary variable</li></ol></li>
66-
<li>Persistance of the position and state of detached panels, File Explorer and Test Suites</li>
66+
<li>Persistence of the position and state of detached panels, File Explorer and Test Suites</li>
6767
<li>File Explorer and Test Suites panels are now Plugins and can be disabled or enabled and made Visible with F11 and F12</li>
6868
<li>File Explorer now shows selected file when RIDE starts</li>
6969
</ul>

0 commit comments

Comments
 (0)