×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    12

    appuifw.Text() bug ?

    import e32
    import appuifw

    ---------------------------------
    class MyApp:
    def __init__(self):
    self.a = appuifw.Text() #assegna ad a un oggetto Text
    self.b = appuifw.Text()
    self.a.set(u"AAAAAAAAAAAAAAAAAA\r") # setta del testo di default
    self.b.set(u"BBBBBBBBBBBBBBBBBB\r") # setta del testo di default
    appuifw.app.body = self.b # visualizza l'oggetto text nella main window
    e32.ao_sleep(2)
    for i in range(10):
    self.a.add(unicode("A" * 1024 + "\r"))

    def loop(self):
    while 1:
    e32.ao_yield()

    def main():
    app = MyApp()
    app.loop()

    if __name__ == "__main__":
    main()
    ---------------------------------
    Text added to the self.a control is still visibile even is self.b the body control.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    Please indent your code before posting with tag code ...

    Code:
    import e32
    import appuifw
    ---------------------------------
    class MyApp:
      def __init__(self):
        self.a = appuifw.Text()             #assegna ad a un oggetto Text
        self.b = appuifw.Text()
        self.a.set(u"AAAAAAAAAAAAAAAAAA\r") # setta del testo di default     
        self.b.set(u"BBBBBBBBBBBBBBBBBB\r") # setta del testo di default
        appuifw.app.body = self.b           # visualizza l'oggetto text nella main window
        e32.ao_sleep(2)
        for i in range(10):
          self.a.add(unicode("A" * 1024 + "\r"))
    
      def loop(self):
        while 1:
          e32.ao_yield()
    
      def main():
        app = MyApp()
        app.loop()
    
    if __name__ == "__main__":
      main()

  3. #3
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643
    Verified and filed as bug #212. Thanks for the report.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •