Data from grid
This commit is contained in:
parent
25733e81cf
commit
0c0ec54b25
Binary file not shown.
|
@ -41,9 +41,11 @@ class Controllers(object):
|
||||||
|
|
||||||
base = f'service:{ID_EXTENSION}?{{}}'
|
base = f'service:{ID_EXTENSION}?{{}}'
|
||||||
submenus = []
|
submenus = []
|
||||||
for i, path in enumerate(self.paths):
|
for i in range(self.d.grid.row_count):
|
||||||
p = app.paths(path)
|
name = self.d.grid[0, i]
|
||||||
label = f'{i+1}. {p.file_name}'
|
path = self.d.grid[2, i]
|
||||||
|
label = f'{i+1}. {name}'
|
||||||
|
path = app.paths.join(path, name)
|
||||||
url = app.paths.to_url(path)
|
url = app.paths.to_url(path)
|
||||||
sm = {'Label': label, 'CommandURL': base.format(url)}
|
sm = {'Label': label, 'CommandURL': base.format(url)}
|
||||||
submenus.append(sm)
|
submenus.append(sm)
|
||||||
|
|
Loading…
Reference in New Issue