changeset 219:782319a64ac6

primitivus, wix: added forgotten profile primitivus: fixed screen redraw when showing popup
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 21:14:09 +0100
parents 5c68a65548c3
children c5274bf5e18b
files frontends/primitivus/primitivus frontends/wix/main_window.py plugins/plugin_misc_cs.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/primitivus/primitivus	Mon Dec 27 18:37:56 2010 +0100
+++ b/frontends/primitivus/primitivus	Mon Dec 27 21:14:09 2010 +0100
@@ -214,7 +214,7 @@
         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 @@
         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)
 
--- a/frontends/wix/main_window.py	Mon Dec 27 18:37:56 2010 +0100
+++ b/frontends/wix/main_window.py	Mon Dec 27 21:14:09 2010 +0100
@@ -169,7 +169,7 @@
             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)
 
--- a/plugins/plugin_misc_cs.py	Mon Dec 27 18:37:56 2010 +0100
+++ b/plugins/plugin_misc_cs.py	Mon Dec 27 21:14:09 2010 +0100
@@ -28,7 +28,6 @@
 from twisted.web.client import getPage
 import os.path
 import pdb
-import random
 
 from zope.interface import implements