
Originally Posted by
gaba88
it seems like we r making a compromise with this feature why not to develop extensions for that.
It's not easy to use extensions.. Lots of problems with signing and installation - even for the first version! How about updates and other simultaneous users of same extension? Sorry, no extensions for me..
If simple appuifw.note is not good enough, how about this. I use it in my wonderful "show me one color, in full screen" script:
Code:
def menu_about():
t = appuifw.Text()
t.clear()
t.color = RGB_BLUE
t.font = u"title"
t.style = (appuifw.STYLE_BOLD | appuifw.STYLE_UNDERLINE)
t.add(u'Watch Me - Light Now\n\n')
t.font = u"normal"
t.style = 0
t.add(u'Version: %s\n' % (VERSION))
t.add(u'Jouni Miettunen, 2008\n\n')
t.add(u'1 - less 2 - RED 3 - more\n')
t.add(u'4 - less 5 - GREEN 6 - more\n')
t.add(u'7 - less 8 - BLUE 9 - more\n')
t.add(u' 0 - Rotate\n')
t.add(u'* - Full screen # - Normal screen\n')
t.add(u'Clear key - WHITE\n')
# HOX: Otherwise softkeys won't work afterwards
# app logic remains in rotate busy loop waiting keypress
global gState
gState = STATE_COLOR
# BUG: user can freely edit text, should be read-only
lock_about = e32.Ao_lock()
appuifw.app.body = t
appuifw.app.exit_key_handler = lock_about.signal
appuifw.app.menu = [(u"Return", lock_about.signal)]
lock_about.wait()
appuifw.app.body = canvas
appuifw.app.exit_key_handler = cb_quit
appuifw.app.menu = [
(u"Rotate RGB", menu_rgb_rotate),
(u"Color Picker", menu_color_picker),
(u"Set RGB Color", menu_rgb_query),
(u"About", menu_about),
(u"Exit", cb_quit)]