1
# Copyright (c) 2007, Enthought, Inc.
4
""" Demo showing how to use the Windows specific Flash editor.
8
from traitsui.wx.extra.windows.flash_editor \
12
import Enum, HasTraits
15
import View, HGroup, Item
18
class FlashDemo ( HasTraits ):
20
# The Flash file to display:
21
flash = Enum( 'http://www.ianag.com/arcade/swf/sudoku.swf',
22
'http://www.ianag.com/arcade/swf/f-336.swf',
23
'http://www.ianag.com/arcade/swf/f-3D-Reversi-1612.swf',
24
'http://www.ianag.com/arcade/swf/game_234.swf',
25
'http://www.ianag.com/arcade/swf/flashmanwm.swf',
26
'http://www.ianag.com/arcade/swf/2379_gyroball.swf',
27
'http://www.ianag.com/arcade/swf/f-1416.swf',
28
'http://www.ianag.com/arcade/swf/mah_jongg.swf',
29
'http://www.ianag.com/arcade/swf/game_e4fe4e55fedc2f502be627ee6df716c5.swf',
30
'http://www.ianag.com/arcade/swf/rhumb.swf' )
32
# The view to display:
35
Item( 'flash', label = 'Pick a game to play' )
40
editor = FlashEditor()
47
# Run the demo (if invoked from the command line):
48
if __name__ == '__main__':
49
demo.configure_traits()