equal
deleted
inserted
replaced
243 comment = blocktype["comment"] |
243 comment = blocktype["comment"] |
244 block_data = { |
244 block_data = { |
245 "type": BLOCK, |
245 "type": BLOCK, |
246 "block_type": blocktype["type"], |
246 "block_type": blocktype["type"], |
247 "inputs": tuple([type |
247 "inputs": tuple([type |
248 for name, type, modifier |
248 for _name, type, _modifier |
249 in blocktype["inputs"]]), |
249 in blocktype["inputs"]]), |
250 "extension": (len(blocktype["inputs"]) |
250 "extension": (len(blocktype["inputs"]) |
251 if blocktype["extensible"] else None), |
251 if blocktype["extensible"] else None), |
252 "comment": _(comment) + blocktype.get("usage", "") |
252 "comment": _(comment) + blocktype.get("usage", "") |
253 } |
253 } |
388 else self.Tree.GetNextSibling) |
388 else self.Tree.GetNextSibling) |
389 |
389 |
390 # Get current selected item (for next and previous mode) |
390 # Get current selected item (for next and previous mode) |
391 item = self.Tree.GetSelection() |
391 item = self.Tree.GetSelection() |
392 if not item.IsOk() or mode == "first": |
392 if not item.IsOk() or mode == "first": |
393 item, item_cookie = self.Tree.GetFirstChild(root) |
393 item, _item_cookie = self.Tree.GetFirstChild(root) |
394 selected = None |
394 selected = None |
395 else: |
395 else: |
396 selected = item |
396 selected = item |
397 |
397 |
398 # Navigate through tree items until one matching found or reach tree |
398 # Navigate through tree items until one matching found or reach tree |