blob: aac84a2c43e72694a730e7b412a0f7c4dd7b2bac (
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(toolbar)
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()
|