Yes, sorry, I'm not super used to Google Groups. I thought I could edit my posts.
from enaml.image import Image
from enaml.layout.api import hbox, vbox
from enaml.widgets.api import Action, Container, ImageView, Label, MainWindow, Menu, MenuBar, PushButton, StatusBar, StatusItem, FileDialogEx
enamldef MainWindow(MainWindow): window:
title = 'Image Viewer'
attr folder
MenuBar: menubar:
Menu:
title = '&File'
Action:
text = 'Open...\tCtrl+O'
triggered ::
folder.path = FileDialogEx.get_existing_directory()
Action:
separator = True
Action:
text = 'Close\tCtrl+C'
triggered :: folder.path = ''
Action:
text = 'Exit\tCtrl+X'
triggered :: exit()
Menu:
title = '&Help'
Action:
text = 'About...'
triggered :: pass
Menu:
title = 'View'