From 76a9038c3dcf54dbc2b2bdd1c105522521df5194 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 27 Dec 2010 21:14:09 +0100 Subject: [PATCH] primitivus, wix: added forgotten profile primitivus: fixed screen redraw when showing popup --- frontends/primitivus/primitivus | 3 ++- frontends/wix/main_window.py | 2 +- plugins/plugin_misc_cs.py | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/primitivus/primitivus b/frontends/primitivus/primitivus index 9317e5e6..4bb05f54 100755 --- a/frontends/primitivus/primitivus +++ b/frontends/primitivus/primitivus @@ -214,7 +214,7 @@ class PrimitivusApp(QuickApp): add_menus = self.bridge.getMenus() def add_menu_cb(menu): category, item = menu - id = self.bridge.callMenu(category, item, "NORMAL") + id = self.bridge.callMenu(category, item, "NORMAL", self.profile) self.current_action_ids.add(id) for new_menu in add_menus: category,item,type = new_menu @@ -278,6 +278,7 @@ class PrimitivusApp(QuickApp): if not isinstance(self.loop.widget,urwid.Overlay): display_widget = urwid.Overlay(pop_up_widget, self.main_widget, 'center', ('relative', perc_width), 'middle', ('relative', perc_height)) self.loop.widget = display_widget + self.redraw() else: self.notBar.addPopUp(pop_up_widget) diff --git a/frontends/wix/main_window.py b/frontends/wix/main_window.py index c849ee6c..1a852f1c 100644 --- a/frontends/wix/main_window.py +++ b/frontends/wix/main_window.py @@ -169,7 +169,7 @@ class MainWindow(wx.Frame, QuickApp): current_menu.Append(item_id, item, help = help_string) #now we register the event def event_answer(e): - id = self.bridge.callMenu(category, item, type) + id = self.bridge.callMenu(category, item, type, self.profile) self.current_action_ids.add(id) wx.EVT_MENU(self, item_id, event_answer) diff --git a/plugins/plugin_misc_cs.py b/plugins/plugin_misc_cs.py index 878b8990..12ac410c 100755 --- a/plugins/plugin_misc_cs.py +++ b/plugins/plugin_misc_cs.py @@ -28,7 +28,6 @@ from twisted.words.protocols.jabber.xmlstream import IQ from twisted.web.client import getPage import os.path import pdb -import random from zope.interface import implements