Skip to content

Commit

Permalink
Fix wxGUI Manage color rules interactively (vector map) frame (#429)
Browse files Browse the repository at this point in the history
* wxGUI Manage color rules interactively (vector map): fix wx.CollapsiblePane
widget id parameter name

* wxGUI Manage color rules interactively (vector map): fix output file
open mode for write in the text mode

* wxGUI Manage color rules interactively (vector map): fix wx SpinCtrl
widget wrapper class size
  • Loading branch information
tmszi authored and petrasovaa committed Mar 22, 2020
1 parent 791e47b commit 62524c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/wxpython/modules/colorrules.py
Expand Up @@ -82,8 +82,8 @@ def __init__(self, parent, mapType, attributeType,
# clear button
self.clearAll = Button(parent, id=wx.ID_ANY, label=_("Clear all"))
# determines how many rules should be added
self.numRules = SpinCtrl(parent, id=wx.ID_ANY,
min=1, max=1e6, initial=1)
self.numRules = SpinCtrl(parent, id=wx.ID_ANY, min=1, max=1e6,
initial=1, size=(150, -1))
# add rules
self.btnAdd = Button(parent, id=wx.ID_ADD)

Expand Down Expand Up @@ -1199,7 +1199,7 @@ def _doLayout(self):
self.cp = wx.CollapsiblePane(
scrollPanel,
label=_("Import or export color table"),
winid=wx.ID_ANY,
id=wx.ID_ANY,
style=wx.CP_DEFAULT_STYLE | wx.CP_NO_TLW_RESIZE)
self.Bind(
wx.EVT_COLLAPSIBLEPANE_CHANGED,
Expand Down Expand Up @@ -1560,7 +1560,7 @@ def LoadRulesFromColumn(self):

sep = ';'
if self.inmap:
outFile = tempfile.NamedTemporaryFile(mode='w+b')
outFile = tempfile.NamedTemporaryFile(mode='w+')
ret = RunCommand('v.db.select',
quiet=True,
flags='c',
Expand Down

0 comments on commit 62524c7

Please sign in to comment.