Skip to content

Commit cb6611b

Browse files
Increases Python supported version (#2939)
* Increases maximum supported Python version, for Python 3.14 future versions. * Corrects title in Code Editor when opening file.
1 parent 4d5f50d commit cb6611b

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
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.2dev22**) with:
43+
(3.8 <= python <= 3.13) Install current development version (**2.2dev23**) with:
4444

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def run(self):
115115
package_dir={'': SOURCE_DIR},
116116
packages=find_packages(SOURCE_DIR),
117117
package_data=PACKAGE_DATA,
118-
python_requires='>=3.8, <3.14',
118+
python_requires='>=3.8, <3.15',
119119
# Robot Framework package data is not included, but RIDE does not need it.
120120
# Always install everything, since we may be switching between versions
121121
options={'install': {'force': True}},

src/robotide/application/releasenotes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def set_content(self, html_win, content):
153153
<a class="reference external" href="https://robotframework.org/">Robot Framework</a> current version, 7.2.2. However,
154154
internal library code is originally based on version 3.1.2, but adapted for new versions.</p>
155155
<ul class="simple">
156-
<li>This version supports Python 3.8 up to 3.13.</li>
156+
<li>This version supports Python 3.8 up to 3.13 (and also tested on 3.14.a7 with wxPython 4.2.3).</li>
157157
<li>There are some changes, or known issues:<ul>
158158
<!--
159159
<li>🐞 - When upgrading RIDE and activate Restart, some errors are visible about missing /language file, and behaviour
@@ -165,6 +165,8 @@ def set_content(self, html_win, content):
165165
<li>🐞 - Some argument types detection (and colorization) is not correct in Grid Editor.</li>
166166
<li>🐞 - RIDE <strong>DOES NOT KEEP</strong> Test Suites formatting or structure, causing differences in files when used
167167
on other IDE or Editors. The option to not reformat the file is not working.</li>
168+
<li>🐞 - In Grid Editor, when showing settings, scrolling down with mouse or using down is not working. You can change
169+
to Text Editor and back to Grid Editor, to restore normal behavior.</li>
168170
</ul>
169171
</li>
170172
</ul>
@@ -234,7 +236,7 @@ def set_content(self, html_win, content):
234236
<pre class="literal-block">python -m robotide.postinstall -install</pre>
235237
<p>or</p>
236238
<pre class="literal-block">ride_postinstall.py -install</pre>
237-
<p>RIDE {VERSION} was released on 15/April/2025.</p>
239+
<p>RIDE {VERSION} was released on 21/April/2025.</p>
238240
<!-- <br/>
239241
<h3>May The Fourth Be With You!</h3>
240242
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>

src/robotide/editor/customsourceeditor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class CodeEditorPanel(wx.Panel):
239239
def __init__(self, parent, main_frame, filepath=None):
240240
self.log = sys.stdout # From FileDialog
241241
self.path = filepath
242+
self.parent = parent
242243
wx.Panel.__init__(self, parent, size=(1, 1))
243244
self.mainFrame = main_frame
244245
self.editor = SourceCodeEditor(self, options={'tab markers':True, 'fold symbols':2})
@@ -384,6 +385,7 @@ def on_button(self, evt):
384385
self.path = filepath
385386
# self.log.write('%s\n' % source)
386387
self.LoadSource(source) # Just the last file
388+
self.parent.SetTitle(filepath)
387389
# Compare this with the debug above; did we change working dirs?
388390
# self.log.WriteText("CWD: %s\n" % os.getcwd())
389391
# self.log.write("CWD: %s\n" % os.getcwd())

src/robotide/editor/kweditor.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def __init__(self, parent, controller, tree):
192192
self._namespace_updated = None
193193
self.InheritAttributes()
194194
self.col_label_element = None
195+
if hasattr(self, 'SetupScrolling'):
196+
self.SetupScrolling(scrollToTop=True, scrollIntoView=True)
197+
self.ShowScrollbars(wx.SHOW_SB_ALWAYS, wx.SHOW_SB_ALWAYS)
198+
print("DEBUG: GridBase init at SELF SetupScrolling\n")
195199
# self.Refresh()
196200
PUBLISHER.subscribe(self._before_saving, RideBeforeSaving)
197201
PUBLISHER.subscribe(self._data_changed, RideItemStepsChanged)
@@ -466,9 +470,6 @@ def _col_label_left_click(self, event):
466470
self.SelectCol(event.Col, addToSelected=False)
467471
self.SetGridCursor(0, event.Col)
468472

469-
def on_move_cursor_down(self, event=None):
470-
self._move_cursor_down(event)
471-
472473
def on_insert_rows(self, event):
473474
self._execute(add_rows(self.selection.rows()))
474475
self.ClearSelection()
@@ -842,6 +843,16 @@ def _call_direct_function(self, event: wx.KeyEvent, keycode: int):
842843
return False # event must not be skipped in this case
843844
elif keycode == wx.WXK_F2:
844845
self.open_cell_editor()
846+
elif keycode in [wx.WXK_DOWN, wx.WXK_UP]:
847+
# This block exists to ty to make cells visible
848+
# on arrow_down because the mouse scroll does not work
849+
# unfortunatelly IsVisible it always True.
850+
delta = 1 if keycode == wx.WXK_DOWN else -1
851+
cursor = (self.GetGridCursorRow(), self.GetGridCursorCol())
852+
cursor = (cursor[0] + delta if cursor[0] + delta >= 0 else 0, cursor[1])
853+
# print(f"DEBUG: call MakeCellVisible cursor={cursor}")
854+
self.MakeCellVisible(cursor)
855+
# print(f"DEBUG: IsCellVisible cursor={self.IsVisible(cursor)}")
845856
return True
846857

847858
def _call_alt_function(self, event, keycode: int):

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.2dev22'
18+
VERSION = 'v2.2dev23'

0 commit comments

Comments
 (0)