Data from grid

This commit is contained in:
Mauricio Baeza 2020-12-27 19:29:09 -06:00
parent 25733e81cf
commit 0c0ec54b25
2 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -41,9 +41,11 @@ class Controllers(object):
base = f'service:{ID_EXTENSION}?{{}}'
submenus = []
for i, path in enumerate(self.paths):
p = app.paths(path)
label = f'{i+1}. {p.file_name}'
for i in range(self.d.grid.row_count):
name = self.d.grid[0, i]
path = self.d.grid[2, i]
label = f'{i+1}. {name}'
path = app.paths.join(path, name)
url = app.paths.to_url(path)
sm = {'Label': label, 'CommandURL': base.format(url)}
submenus.append(sm)