Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
* arduinoide.core.ui.main now uses gtk.glade
Browse files Browse the repository at this point in the history
  • Loading branch information
nick125 committed Sep 1, 2008
1 parent fc03ce6 commit de4d305
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/arduinoide/core/ui/main.py
Expand Up @@ -5,19 +5,16 @@
# Licensed under the GPLv2 or later. View LICENSE for more information
#

import os
import gtk
from arduinoide.core.i18n.gt import _
import gtk.glade

class MainWindow:
def __init__(self, title=_("Arduino IDE")):
"""
Initialize the main window.
"""
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_title(title)
self.gladefile = os.path.abspath("../../resources/glade/editor.glade") # TODO: Fix this!
self.widgets = gtk.glade.XML(self.gladefile)
self.window = self.widgets.get_widget("MainWindow")

def show(self):
"""
Place all of your widget show() calls here
"""
self.window.show()

0 comments on commit de4d305

Please sign in to comment.