mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Sort examples
This commit is contained in:
parent
858c23b922
commit
f726e6b56b
@ -123,7 +123,8 @@ class OMVGtk:
|
||||
if os.path.isdir(EXAMPLE_PATH):
|
||||
exmenu = gtk.Menu()
|
||||
example_menu = self.builder.get_object('example_menu')
|
||||
for f in os.listdir(EXAMPLE_PATH):
|
||||
examples = sorted(os.listdir(EXAMPLE_PATH))
|
||||
for f in examples:
|
||||
if f.endswith(".py"):
|
||||
label = os.path.basename(f)
|
||||
mitem =gtk.MenuItem(label)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user