Skip to content

Commit

Permalink
wxGUI Module dialog: fix enable scrolling for the Basic top module st…
Browse files Browse the repository at this point in the history
…yle (#503)
  • Loading branch information
tmszi committed Apr 17, 2020
1 parent 4e05bc7 commit 4e7d532
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/wxpython/gui_core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ def __init__(self, parent, giface, task, id=wx.ID_ANY,
flag=style, border=5)
font_sizer.Add(font_btn, proportion=0,
flag=style, border=5)

which_sizer.Add(font_sizer, proportion=0,
flag=style, border=5)
p['wxId'].append(font_btn.GetId())
Expand Down Expand Up @@ -2082,7 +2082,7 @@ def OnCheckItem(index, flag):
self.OnUpdateValues() # TODO: replace by signal

self.win1.OnCheckItem = OnCheckItem

elif prompt == 'sql_query':
win = gselect.SqlWhereSelect(
parent=which_panel, param=p)
Expand Down Expand Up @@ -2207,7 +2207,7 @@ def OnCheckItem(index, flag):
pSqlWhereIds = []
for p in pSqlWhere:
pSqlWhereIds += p['wxId']

# set wxId-bindings
if pMap:
pMap['wxId-bind'] = []
Expand Down Expand Up @@ -2253,7 +2253,7 @@ def OnCheckItem(index, flag):
maxsizes = (0, 0)
for section in sections:
tab[section].SetSizer(tabsizer[section])
tabsizer[section].Fit(tab[section])
tab[section].SetupScrolling(True, True, 10, 10)
tab[section].Layout()
minsecsizes = tabsizer[section].GetSize()
maxsizes = list(map(lambda x: max(maxsizes[x], minsecsizes[x]), (0, 1)))
Expand Down

0 comments on commit 4e7d532

Please sign in to comment.