Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Widgets.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2013-09-28 15:14:46 (GMT)
committer flavio <fdanesse@gmail.com>2013-09-28 15:14:46 (GMT)
commit8e7cbbc3ae388b2606599ec676224efbd48793c0 (patch)
treeef40ab10a712ad60479e8837ae33982c247ac2dc /Widgets.py
parentaea5c3610682fbaa483daae50d7af11acaaa94f1 (diff)
Corrección
Diffstat (limited to 'Widgets.py')
-rw-r--r--Widgets.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/Widgets.py b/Widgets.py
index e59c502..2e7b7c9 100644
--- a/Widgets.py
+++ b/Widgets.py
@@ -264,7 +264,10 @@ class Menu(Gtk.MenuBar):
### Items del menú Ver
item = Gtk.MenuItem()
- item.get_child().destroy()
+ try:
+ item.get_child().destroy()
+ except:
+ pass
hbox = Gtk.HBox()
hbox.pack_start(Gtk.CheckButton(), False, False, 0)
label = Gtk.Label("Numeros de línea")
@@ -278,7 +281,10 @@ class Menu(Gtk.MenuBar):
# ord('L'), Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE)
item = Gtk.MenuItem()
- item.get_child().destroy()
+ try:
+ item.get_child().destroy()
+ except:
+ pass
hbox = Gtk.HBox()
button = Gtk.CheckButton()
button.set_active(True)
@@ -293,7 +299,10 @@ class Menu(Gtk.MenuBar):
# ord('F'), Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE)
item = Gtk.MenuItem()
- item.get_child().destroy()
+ try:
+ item.get_child().destroy()
+ except:
+ pass
hbox = Gtk.HBox()
button = Gtk.CheckButton()
button.set_active(True)