Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5631 enhancement closed fixed (fixed)

Add a core example of using Tkinter with Twisted

Reported by: jesstess Owned by: itamar
Priority: normal Milestone:
Component: core Keywords: documentation easy
Cc: thijs Branch:
Author: lesleylam


We talk about how to integrate Tkinter in, but we have no explicit, basic example in doc/core/examples.

We do already have a PyUI demo (doc/core/examples/

Attachments (1)

tkinterdemo.patch (1.3 KB) - added by lesleylam 5 years ago.
Example of integrating Tkinter with Twisted

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 years ago by thijs

  • Cc thijs added
  • Keywords documentation added

comment:2 Changed 5 years ago by exarkun

  • Keywords changed from documentation, easy to documentation easy

Changed 5 years ago by lesleylam

Example of integrating Tkinter with Twisted

comment:3 Changed 5 years ago by lesleylam

  • Keywords review added

I've written up a basic example for integrating Tkinter with Twisted. Attached is the patch file for review.

comment:4 Changed 5 years ago by itamar

  • Author set to lesleylam
  • Keywords review removed
  • Owner set to itamar

Thanks for the contribution - looks good!

I will make three minor tweaks and then commit:

  1. If possible, should avoid using "from module import *", it fills up the module with unexpected names and makes it harder to figure out where objects came from. So I'll be doing "from Tkinter import Frame, Button" etc.. Apparently some GUI frameworks recommend * imports because they have so many objects, though.
  1. I'll rephrase the news file slightly.
  1. The file seemed to have mixed tabs and spaces, which can be problematic.

comment:5 Changed 5 years ago by itamarst

  • Resolution set to fixed
  • Status changed from new to closed

(In [34214]) Merge patch: Tkinter/Twisted integration example.

Author: lesleylam Review: itamar Fixes: #5631

comment:6 Changed 5 years ago by thijs

The example wasn't included in the index.xhtml.

Note: See TracTickets for help on using tickets.