Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    twisting 0.6.3

    Download button

    No screenshots available
    Downloads: 300  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Florent PIGOUT | More programs
    BSD License / FREE
    March 31st, 2009, 08:45 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    twisting description

    twisting is based on twisted deferred thread with GTK

    twisting is Python library based on Twisted deferred thread with GTK.

    Requirements

    To be effective the twisting needs the twisted library in addition with gtk. Then we have to do the following imports at the beginning of the main entry file of the application:

    # twisted install
    from twisted.internet import gtk2reactor
    # install the gtk2 reactor
    gtk2reactor.install()
    # twisted import
    from twisted.internet import reactor


    Before we started the application with traditional gtk main thread starting:

     # gtk thread start gtk.main()

    Now we use the twisted reactor start after as follow:

    # twisted reactor start
    reactor.run()


    Note: your main graphic window must be created before the reactor start like with gtk.

    Framework overview

    The gui part of the twisting framework offer the following functionalities:

     1. gui elements to display the tasks progress

     * taskbox object: attach to a task to inform about the task progression
     * progress window: contains all the task boxes that can be hidden
     * progress box: can be use in a parent window to inform about the average progression

     2. several tasks management

     * add task: create a thread and a taskox attach to a working method
     * pause/play task: automatically managed by the framework
     * stop task: return a flag to the main loop
     * remove a taskbox from the progress window (stopped automatically)

     nb: each task correspond with a gui widget displaying the progress status of the task
     3. callbacks

     * result callback: set when we add the task and call with a result by the twisted deferred thread when the worker loop ended
     * error callback: set when we add the task and call by the twisted deferred thread on error
     * all tasks finished callback: call by the progress window when all tasks are finished, can be used for message display, progress window hide or i don't know...


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    deferred thread | Python library | Twisted | GTK | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM