Ticket #5631 enhancement closed fixed

Opened 14 months ago

Last modified 14 months ago

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 Launchpad Bug:

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

tkinterdemo.patch Download (1.3 KB) - added by lesleylam 14 months ago.
Example of integrating Tkinter with Twisted

Change History

1

Changed 14 months ago by thijs

  • cc thijs added
  • keywords documentation, added

2

Changed 14 months ago by exarkun

  • keywords documentation added; documentation, removed

Changed 14 months ago by lesleylam

Example of integrating Tkinter with Twisted

3

Changed 14 months 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.

4

Changed 14 months ago by itamar

  • keywords review removed
  • owner set to itamar
  • branch_author set to lesleylam

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.

2. I'll rephrase the news file slightly.

3. The file seemed to have mixed tabs and spaces, which can be problematic.

5

Changed 14 months ago by itamarst

  • status changed from new to closed
  • resolution set to fixed

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

Author: lesleylam Review: itamar Fixes: #5631

6

Changed 14 months ago by thijs

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

Note: See TracTickets for help on using tickets.