Prechádzať zdrojové kódy

wxGUI/modeler: item list cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58149 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 rokov pred
rodič
commit
f3c0e3aa4d

+ 4 - 2
gui/wxpython/gmodeler/dialogs.py

@@ -805,9 +805,11 @@ class ItemListCtrl(ModelListCtrl):
             else:
                 bId = action.GetBlockId()
                 if not bId:
-                    bId = ''
+                    bId = _('No')
+                else:
+                    bId = _("Yes")
                 self.itemDataMap[i] = [action.GetName(),
-                                       ','.join(map(str, bId)),
+                                       bId,
                                        action.GetLog()]
             
             i += 1

+ 2 - 2
gui/wxpython/gmodeler/frame.py

@@ -1472,8 +1472,8 @@ class ItemPanel(wx.Panel):
                                     label=" %s " % _("List of items - right-click to delete"))
         
         self.list = ItemListCtrl(parent = self,
-                                 columns = [_("Name"), _("In block"),
-                                            _("Command / Condition")])
+                                 columns = [_("Name"), _("In loop"),
+                                            _("Command")])
         
         self.btnMoveUp = wx.Button(parent=self, id=wx.ID_UP)
         self.btnMoveDown = wx.Button(parent=self, id=wx.ID_DOWN)