Menu

#13 222: Wireless Keyboard application + appuifw tabs

wont-fix-for-1.4
open-accepted
appuifw (50)
5
2008-06-05
2006-03-09
No

see
http://discussion.forum.nokia.com/forum/showthread.php?s=&threadid=65346

"
Behavior: When the keyboard application is installed on
the phone (just installed, not necessarily running),
the tabs in the Python app become hidden. They do
function (send callbacks appropriately), however. When
the keyboard application is removed, the tabs reappear.

Platform: This was tested on a 6600, Firmware v 4.09.1
26-02-04 NHL-10 with Python 1.1.6 (both fast / regular).

Repeatability: The activity survives reboots and
reinstalls of Python and the keyboard application. It
has only been tested on one device with an unclean install.

Test case below:

code:

# tab test
import appuifw
import e32

class App:
def __init__(self):
self.lock = e32.Ao_lock()

self.old_title = appuifw.app.title
appuifw.app.title = u"tab Test"

self.exit_flag = False
appuifw.app.exit_key_handler = self.abort

self.listbox1 = appuifw.Listbox([u"item 1",
u"item 2"], self.blah)
self.listbox2 = appuifw.Listbox([u"item 3",
u"item 4"], self.blah)

appuifw.app.set_tabs([u"abc", u"def"],
self.update_tab_contents)
self.currenttab = 0
self.lock.signal()

def blah(self):
pass

def refresh(self):
self.update_tab_contents( self.currenttab )

def update_tab_contents(self,index):
self.currenttab = index
if index == 0:
appuifw.app.body = self.listbox1
elif index == 1:
appuifw.app.body = self.listbox2

def loop(self):
try:
self.lock.wait()
while not self.exit_flag:
self.refresh()
self.lock.wait()
finally:
pass

def close(self):
appuifw.app.set_tabs([], None)
appuifw.app.body = None
appuifw.app.exit_key_handler = None
appuifw.app.title = self.old_title

def abort(self):
# Exit-key handler.
self.exit_flag = True
self.lock.signal()

def main():
app = App()
try:
app.loop()
finally:
app.close()

if __name__ == "__main__":
main()
"

Discussion

  • Jukka Laurila

    Jukka Laurila - 2007-02-19
    • labels: --> appuifw
    • assigned_to: nobody --> janimr
     
  • Jani Rytkönen

    Jani Rytkönen - 2007-03-12

    Logged In: YES
    user_id=1591731
    Originator: NO

    Bug verified with 6600 PyS60 1.3.18.
    However tabs works with N90 and and N93. So this seems to be some weird platform bug.

     
  • Jani Rytkönen

    Jani Rytkönen - 2007-03-12
    • status: open --> open-wont-fix
     
  • Jani Rytkönen

    Jani Rytkönen - 2007-03-28
    • status: open-wont-fix --> closed-wont-fix
     
  • Jani Rytkönen

    Jani Rytkönen - 2007-06-01
    • milestone: --> wont-fix-for-1.4
    • status: closed-wont-fix --> open-wont-fix
     
  • Jukka Laurila

    Jukka Laurila - 2007-06-01
    • status: open-wont-fix --> closed-wont-fix
     
  • Jukka Laurila

    Jukka Laurila - 2007-06-01

    Logged In: YES
    user_id=1162622
    Originator: YES

    Probably a platform bug, works on new platforms. 1.4 relnotes.

     
  • Jukka Laurila

    Jukka Laurila - 2007-06-29
    • assigned_to: janimr --> vbartoni
     
  • Jukka Laurila

    Jukka Laurila - 2008-01-16
    • status: closed-wont-fix --> open-wont-fix
     
  • Himanshu Agarwal

    • status: open-wont-fix --> open-remind
     
  • Jukka Laurila

    Jukka Laurila - 2008-06-05
    • status: open-remind --> open-accepted
     

Log in to post a comment.