diff --git a/wxPython/wxPython/tools/XRCed/CHANGES.txt b/wxPython/wxPython/tools/XRCed/CHANGES.txt index 567f7b7932..dff8641b48 100644 --- a/wxPython/wxPython/tools/XRCed/CHANGES.txt +++ b/wxPython/wxPython/tools/XRCed/CHANGES.txt @@ -1,3 +1,11 @@ +0.1.1-4 +------- + +Fixed problems with wxStaticBitmap (stock_id attribute, icon type +switching). + +Changed some dimensions in properties panel elements. + 0.1.1-3 ------- diff --git a/wxPython/wxPython/tools/XRCed/globals.py b/wxPython/wxPython/tools/XRCed/globals.py index 148c36db01..26db34ec9c 100644 --- a/wxPython/wxPython/tools/XRCed/globals.py +++ b/wxPython/wxPython/tools/XRCed/globals.py @@ -15,7 +15,7 @@ modernFont = wxFont(sysFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL) smallerFont = wxFont(sysFont.GetPointSize()-2, wxDEFAULT, wxNORMAL, wxNORMAL) progname = 'XRCed' -version = '0.1.1-3' +version = '0.1.1-4' try: True diff --git a/wxPython/wxPython/tools/XRCed/panel.py b/wxPython/wxPython/tools/XRCed/panel.py index b9abd4b2bd..e5e8fbdbff 100644 --- a/wxPython/wxPython/tools/XRCed/panel.py +++ b/wxPython/wxPython/tools/XRCed/panel.py @@ -20,8 +20,11 @@ class Panel(wxNotebook): self.modified = False # Set common button size for parameter buttons + bTmp = wxButton(self, -1, '') import params - params.buttonSize = self.DLG_SZE(buttonSize) + params.buttonSize = (self.DLG_SZE(buttonSize)[0], bTmp.GetSize()[1]) + bTmp.Destroy() + del bTmp # List of child windows self.pages = [] diff --git a/wxPython/wxPython/tools/XRCed/params.py b/wxPython/wxPython/tools/XRCed/params.py index 73d5a2696f..e92ee1b98f 100644 --- a/wxPython/wxPython/tools/XRCed/params.py +++ b/wxPython/wxPython/tools/XRCed/params.py @@ -16,7 +16,7 @@ genericStyles = ['wxSIMPLE_BORDER', 'wxDOUBLE_BORDER', 'wxTRANSPARENT_WINDOW', 'wxWANTS_CHARS', 'wxNO_FULL_REPAINT_ON_RESIZE'] -buttonSize = (30,-1) # in dialog units, transformed to pixels in panel ctor +buttonSize = (35,-1) # in dialog units, transformed to pixels in panel ctor # Class that can properly disable children class PPanel(wxPanel): @@ -274,8 +274,8 @@ class ParamFont(PPanel): fontStylesWx2Xml.get(font.GetStyle(), "normal"), fontWeightsWx2Xml.get(font.GetWeight(), "normal"), str(font.GetUnderlined()), - font.GetFaceName(), - wxFontMapper_GetEncodingName(font.GetEncoding()) + font.GetFaceName().encode(), + wxFontMapper_GetEncodingName(font.GetEncoding()).encode() ] # Add ignored flags self.SetValue(value) @@ -694,8 +694,8 @@ class RadioBox(PPanel): self.choices = choices topSizer = wxBoxSizer() for i in choices: - button = wxRadioButton(self, -1, i, name=i) - topSizer.Add(button) + button = wxRadioButton(self, -1, i, size=(-1,buttonSize[1]), name=i) + topSizer.Add(button, 0, wxRIGHT, 5) EVT_RADIOBUTTON(self, button.GetId(), self.OnRadioChoice) self.SetAutoLayout(True) self.SetSizer(topSizer) @@ -815,10 +815,12 @@ class ParamBitmap(PPanel): def updateRadios(self): if self.value[0]: self.radio_std.SetValue(True) + self.radio_file.SetValue(False) self.text.Enable(False) self.button.Enable(False) self.combo.Enable(True) else: + self.radio_std.SetValue(False) self.radio_file.SetValue(True) self.text.Enable(True) self.button.Enable(True) diff --git a/wxPython/wxPython/tools/XRCed/xrced.xrc b/wxPython/wxPython/tools/XRCed/xrced.xrc index cc9554f0c5..e712dbb1a4 100644 --- a/wxPython/wxPython/tools/XRCed/xrced.xrc +++ b/wxPython/wxPython/tools/XRCed/xrced.xrc @@ -298,6 +298,7 @@ + wxALIGN_CENTRE_VERTICAL @@ -342,6 +343,7 @@ + wxALIGN_CENTRE_VERTICAL @@ -355,7 +357,7 @@ - 30,-1d + 40,-1d diff --git a/wxPython/wxPython/tools/XRCed/xxx.py b/wxPython/wxPython/tools/XRCed/xxx.py index a9526b547b..6da593b359 100644 --- a/wxPython/wxPython/tools/XRCed/xxx.py +++ b/wxPython/wxPython/tools/XRCed/xxx.py @@ -169,7 +169,7 @@ class xxxParamBitmap(xxxParam): self.stock_id = value[0] if self.stock_id: self.node.setAttribute('stock_id', self.stock_id) - else: + elif self.node.hasAttribute('stock_id'): self.node.removeAttribute('stock_id') xxxParam.update(self, value[1])