Results 1 to 2 of 2

Thread: How do I specify event callbacks from the application framework in Python?

  1. #1
    Member
    Join Date
    Feb 2012
    Posts
    82

    How do I specify event callbacks from the application framework in Python?

    How do I specify event callbacks from the application framework in Python?

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,261
    Subclass the framework class, using the Lianja module and add in the callback code, e.g.

    class myCommandButton(Lianja.CommandButton):
    def click(self):
    # ...

    Then add an object based on the subclass

    container.addobject("mybutton","myCommandButton")

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us