Mercurial > libervia-backend
diff frontends/primitivus/primitivus @ 176:a50953ac6191
Primitivus: send_file first draft
- a new dialog for choosing a file is work in progress
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Aug 2010 23:09:31 +0800 |
parents | ec6611445a5b |
children | fdb961f27ae9 |
line wrap: on
line diff
--- a/frontends/primitivus/primitivus Thu Aug 12 19:35:56 2010 +0800 +++ b/frontends/primitivus/primitivus Thu Aug 12 23:09:31 2010 +0800 @@ -230,10 +230,10 @@ #we still have popup to show, we display it self.showPopUp(next_popup) - def showPopUp(self, pop_up_widget): + def showPopUp(self, pop_up_widget, perc_width=40, perc_height=40): "Show a pop-up window if possible, else put it in queue" if not isinstance(self.loop.widget,urwid.Overlay): - display_widget = urwid.Overlay(pop_up_widget, self.main_widget, 'center', ('relative', 40), 'middle', ('relative', 40)) + display_widget = urwid.Overlay(pop_up_widget, self.main_widget, 'center', ('relative', perc_width), 'middle', ('relative', perc_height)) self.loop.widget = display_widget else: self.notBar.addPopUp(pop_up_widget)