Mercurial > pyarq-presupuestos
diff Gtk/gui.py @ 3:a221c14c3c31
translate and clean gui
author | Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es> |
---|---|
date | Sun, 31 Oct 2010 21:01:48 +0100 |
parents | 2ac1551ad2ab |
children | 4e976a99efb9 |
line wrap: on
line diff
--- a/Gtk/gui.py Sun Oct 31 20:08:15 2010 +0100 +++ b/Gtk/gui.py Sun Oct 31 21:01:48 2010 +0100 @@ -119,7 +119,6 @@ <menuitem action="Close"/> </menu> <menu action="View"> - <menuitem action="Text"/> </menu> <menu action="Test"> <menuitem action="ImportFiebdcPriceDatabase"/> @@ -162,19 +161,17 @@ self.__general_action_group = _general_action_group _general_action_group.add_actions( [("File", None, _("_File"), None), - ("ImportFiebdc", gtk.STOCK_OPEN, _('_Import Fiebdc'), "", 'NPI', - self._menuitemImportFiebdc), - ("Close", gtk.STOCK_CLOSE, _("_Close"), None, 'NPI', + ("ImportFiebdc", gtk.STOCK_OPEN, _('_Import Fiebdc'), "", + _('Import FIEBDC'), self._menuitemImportFiebdc), + ("Close", gtk.STOCK_CLOSE, _("_Close"), None, _('Close'), self._menuitemClose), ("View", None, _("_View")), - ("Text", None, _("_Text"), None, 'NPI', - self._menuitemText), ("Test", None, _("_Test")), ('ImportFiebdcPriceDatabase', gtk.STOCK_OPEN, - _("Import Fiebdc _price database"), "", "NPI", + _("Import Fiebdc _price database"), "", _("Import database"), self._menuitemImportPriceDatabase ), ("OpenPriceDatabase", gtk.STOCK_OPEN, _('_Open price database'), - "", 'NPI', self._menuitemOpenPriceDatabase), + "", _('Open Database'), self._menuitemOpenPriceDatabase), ]) _uimanager.insert_action_group(_general_action_group, 0) _uimanager.add_ui_from_string(self.__ui) @@ -347,25 +344,6 @@ _page.clear() self.__notebook.remove_page(_page_num) - def _menuitemText(self, widget): - """_menuitemText(self, widget) - - widget: the widget where the event is emitted from - - Creates and shows a window showing text description - using a instance of TextWindow class. - """ - _page_num = self.__notebook.get_current_page() - if _page_num == -1: - return - _budget = self.__budget_list[_page_num] - _page = self.__page_list[_page_num] - _code = _page.getActiveCode() - _concepto = _budget.getRecord(_code) - _text = _concepto.text - _window = TextWindow(_code, _text) - _window.main() - def _delete_event(self, widget, event): """_delete_event(self, widget, event) @@ -1175,15 +1153,15 @@ It shows a popup menu with some options """ _menu_view = gtk.Menu() - _item_leftright = gtk.MenuItem("Split View Left/Right") + _item_leftright = gtk.MenuItem(_("Split View Left/Right")) _menu_view.append(_item_leftright) _item_leftright.connect_object("activate", self._split_view, "h") _item_leftright.show() - _item_topbottom = gtk.MenuItem("Split View Top/Bottom") + _item_topbottom = gtk.MenuItem(_("Split View Top/Bottom")) _menu_view.append(_item_topbottom) _item_topbottom.connect_object("activate", self._split_view, "v") _item_topbottom.show() - _item_close = gtk.MenuItem("close view") + _item_close = gtk.MenuItem(_("Close view")) _menu_view.append(_item_close) _item_close.connect_object("activate", self._closeItem, None) _item_close.show()