From b52a3f267462796d9097e0c879a8f5deaf5cb4a3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 05 Oct 2009 17:39:37 +0000 Subject: cleaned up pre-0.86 toolbar support --- (limited to 'tawindow.py') diff --git a/tawindow.py b/tawindow.py index c9442f3..5a7b4ee 100644 --- a/tawindow.py +++ b/tawindow.py @@ -194,22 +194,14 @@ def hideshow_palette(tw,state): if state is False: tw.palette == False if hasattr(tw,'activity'): - try: - # Use new toolbar design - tw.activity.do_hidepalette() - except: - # Use old toolbar design - tw.activity.projectToolbar.do_hidepalette() + # Use new toolbar design + tw.activity.do_hidepalette() hide_palette(tw) else: tw.palette == True if hasattr(tw,'activity'): - try: - # Use new toolbar design - tw.activity.do_showpalette() - except: - # Use old toolbar design - tw.activity.projectToolbar.do_showpalette() + # Use new toolbar design + tw.activity.do_showpalette() show_palette(tw) def show_palette(tw): @@ -778,12 +770,7 @@ def showPopup(block_name,tw): label = block_name_s + ": " + hover_dict[block_name] except: label = block_name_s - try: - # Use new toolbar - tw.activity.hover_help_label.set_text(label) - tw.activity.hover_help_label.show() - except: - # Use old toolbar - tw.activity.helpToolbar.hover_help_label.set_text(label) - tw.activity.helpToolbar.hover_help_label.show() + # Use new toolbar + tw.activity.hover_help_label.set_text(label) + tw.activity.hover_help_label.show() return 0 -- cgit v0.9.1