Introduced bug #18, stopping for tonight

This commit is contained in:
2014-05-06 23:53:17 -07:00
parent 15f731461c
commit b34f00797a

View File

@@ -8,7 +8,6 @@ module Tailor
def initialize() def initialize()
super(nil, -1, 'Tailor') super(nil, -1, 'Tailor')
init_menubar() init_menubar()
init_mainpanel()
show() show()
end end
@@ -38,11 +37,8 @@ module Tailor
evt_menu(Wx::ID_ABOUT, :on_help_about) evt_menu(Wx::ID_ABOUT, :on_help_about)
end end
def init_mainpanel
@mainPanel = Wx::Panel.new(self)
end
def on_file_new def on_file_new
@mainPanel = Wx::Panel.new(self)
@mainPanelSizer = Wx::BoxSizer.new(Wx::VERTICAL) @mainPanelSizer = Wx::BoxSizer.new(Wx::VERTICAL)
@mainPanel.set_sizer(@mainPanelSizer) @mainPanel.set_sizer(@mainPanelSizer)
@tilesetProperties = Tailor::GUI::TilesetProperties.new(@mainPanel, Wx::ID_ANY) @tilesetProperties = Tailor::GUI::TilesetProperties.new(@mainPanel, Wx::ID_ANY)
@@ -72,8 +68,7 @@ module Tailor
end end
def on_file_close def on_file_close
@mainPanel.set_sizer(nil) @mainPanel.destroy
@mainPanelSizer = nil
end end
def on_help_about def on_help_about