Commit d2085fd0 authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly refresh layout when reloading custom buttons (#431)

parent 0d7b62fa
......@@ -999,7 +999,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
b.Bind(wx.EVT_MOUSE_EVENTS, self.editbutton)
self.custombuttonbuttons.append(b)
self.centersizer.Add(b, pos = (i // 4, i % 4))
self.panel.GetSizer().Layout()
self.panel.Fit()
def help_button(self):
print _('Defines custom button. Usage: button <num> "title" [/c "colour"] command')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment