Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/GnomExplorer.py
blob: 50b10e056b5b77fb8b1629636b95b1dc21854aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# GnomExplorer.py by:
# Cristian García <cristian99garcia@gmail.com>
# Ignacio Rodríguez <nachoel01@gmail.com>
# Python Joven - CeibalJAM! Uruguay

from gi.repository import Gtk
from Widgets import Toolbar
from MainPaned import MainPaned

class GnomExplorer(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self)
        
        self.connect('delete-event', lambda x,i: exit())
        
        self.box_principal = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
        toolbar = Toolbar()
        paned = MainPaned()
        self.box_principal.pack_start(toolbar, False, False, 0)
        self.box_principal.pack_start(paned, True, True, 6)

        self.add(self.box_principal)
        self.show_all()

if __name__ == '__main__':
    GnomExplorer()
    Gtk.main()