def __init__(self): self.app = Application() # Set app size. self.app.set_default_size(APP_WIDTH, APP_HEIGHT) self.app.set_icon(app_theme.get_pixbuf("logo.ico")) self.app.set_skin_preview(app_theme.get_pixbuf("frame.png")) # Add app titlebar. self.app.add_titlebar(["theme", "max", "min", "close"], app_theme.get_pixbuf("logo.png"), "Assembly-IDE v 1.0", " ", add_separator=True) self.vbox_ali = gtk.Alignment() self.vbox_ali.set(1, 1, 1, 1) self.vbox_ali.set_padding(6, 2, 2, 2) self.vbox = gtk.VBox() self.vbox_ali.add(self.vbox) self.init_root_menu() self.init_top_toolbar() self.code_edit = CodeEdit() self.code_edit_file = self.code_edit.file_path self.complie_show_list = ComplieShowList() self.code_edit.connect("codeedit-changed-file-name", self.modify_code_edit_file_name) self.vbox.pack_start(self.top_toolbar_ali, False, False) self.vbox.pack_start(self.code_edit, True, True) self.vbox.pack_start(self.complie_show_list, False, False) self.app.main_box.pack_start(self.vbox_ali, True, True) self.app.window.show_all()