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 Turner-Trauring
Priority: normal Milestone:
Component: core Keywords: documentation easy
Cc: Thijs Triemstra Branch:
Author: lesleylam

Description

We talk about how to integrate Tkinter in http://twistedmatrix.com/documents/current/core/howto/choosing-reactor.html#auto15, but we have no explicit, basic example in doc/core/examples.

We do already have a PyUI demo (doc/core/examples/pyuidemo.py).

Attachments (1)

tkinterdemo.patch (1.3 KB) - added by Lesley Lam 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 Triemstra

Cc: Thijs Triemstra added
Keywords: documentation added

comment:2 Changed 5 years ago by Jean-Paul Calderone

Keywords: documentation, easydocumentation easy

Changed 5 years ago by Lesley Lam

Attachment: tkinterdemo.patch added

Example of integrating Tkinter with Twisted

comment:3 Changed 5 years ago by Lesley Lam

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 Turner-Trauring

Author: lesleylam
Keywords: review removed
Owner: set to Itamar Turner-Trauring

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: fixed
Status: newclosed

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

Author: lesleylam Review: itamar Fixes: #5631

comment:6 Changed 5 years ago by Thijs Triemstra

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

Note: See TracTickets for help on using tickets.