Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/BasePanel.py
diff options
context:
space:
mode:
Diffstat (limited to 'BasePanel.py')
-rw-r--r--BasePanel.py44
1 files changed, 28 insertions, 16 deletions
diff --git a/BasePanel.py b/BasePanel.py
index beca800..1406e85 100644
--- a/BasePanel.py
+++ b/BasePanel.py
@@ -29,35 +29,48 @@ from gi.repository import Gdk
from InfoNotebook import InfoNotebook
from WorkPanel import WorkPanel
+
from Widgets import ToolbarProyecto
from Widgets import ToolbarArchivo
-from InfoNotebook import BuscadorTreeViews
+from Widgets import BuscadorTreeViews
class BasePanel(Gtk.Paned):
-
+ """
+ Panel Horizontal:
+ Izquierda:
+ Estructura de Proyecto e Introspección sobre el mismo.
+
+ Derecha:
+ Archivos y terminales.
+ """
+
def __init__(self):
Gtk.Paned.__init__(self, orientation=Gtk.Orientation.HORIZONTAL)
self.workpanel = WorkPanel()
self.infonotebook = InfoNotebook()
- self.toolbarproyecto = ToolbarProyecto()
- self.toolbararchivo = ToolbarArchivo()
- self.busca_treeview = BuscadorTreeViews(self.infonotebook.introspeccion)
- self.infonotebook_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
- self.infonotebook_box.pack_start(self.toolbarproyecto, False, True, 0)
- self.infonotebook_box.pack_start(self.infonotebook, True, True, 0)
- self.infonotebook_box.pack_end(self.busca_treeview, False, False, 0)
+ toolbarproyecto = ToolbarProyecto()
+ toolbararchivo = ToolbarArchivo()
+
+ busca_treeview = BuscadorTreeViews(self.infonotebook.introspeccion)
+
+ infonotebook_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
- self.infonotebook_box.set_size_request(280, -1)
+ infonotebook_box.pack_start(toolbarproyecto, False, False, 0)
+ infonotebook_box.pack_start(self.infonotebook, True, True, 0)
+ infonotebook_box.pack_end(busca_treeview, False, False, 0)
- self.workpanel_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
- self.workpanel_box.pack_start(self.toolbararchivo, False, False, 0)
- self.workpanel_box.pack_end(self.workpanel, True, True, 0)
+ infonotebook_box.set_size_request(250, -1)
+
+ workpanel_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
+
+ workpanel_box.pack_start(toolbararchivo, False, False, 0)
+ workpanel_box.pack_end(self.workpanel, True, True, 0)
- self.pack1(self.infonotebook_box, resize = False, shrink = False)
- self.pack2(self.workpanel_box, resize = True, shrink = True)
+ self.pack1(infonotebook_box, resize = True, shrink = True)
+ self.pack2(workpanel_box, resize = True, shrink = True)
self.show_all()
@@ -91,4 +104,3 @@ class BasePanel(Gtk.Paned):
self.infonotebook.set_path_estructura(path)
self.workpanel.abrir_archivo(os.path.join(path, main))
-