Skip to content

Commit

Permalink
wx.metadata: fix create/edit map metadata with g.gui.metadata module (#…
Browse files Browse the repository at this point in the history
…890)

* Fix wx.TextCtrl widget init parent window parameter argument.
* sashPosition parameter argument for wx.SplitterWindow SplitHorizontally
method must be int type. Use default parameter argument is 0, half of
the total window width.

Fix for Python 3.10, wxPython 4.2.0 version.
  • Loading branch information
tmszi committed Apr 29, 2023
1 parent f41bfb6 commit 67aaa8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/wxpython/wx.metadata/g.gui.metadata/g.gui.metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ def initEditor(

self.ntbRight = NotebookRight(self.splitter, self.xmlPath)

self.splitter.SplitVertically(self.editor, self.ntbRight, sashPosition=0.65)
self.splitter.SplitVertically(self.editor, self.ntbRight)
self.splitter.SetSashGravity(0.65)
self.leftPanel.Hide()
self.Hsizer.Add(self.splitter, proportion=1, flag=wx.EXPAND)
Expand Down Expand Up @@ -1658,7 +1658,7 @@ class MdValidator(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent=parent, id=wx.ID_ANY)
self.text = wx.TextCtrl(
parent,
self,
id=wx.ID_ANY,
size=(0, 55),
style=wx.VSCROLL
Expand Down

0 comments on commit 67aaa8b

Please sign in to comment.