Skip to content

Commit

Permalink
Fix imports for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Nov 14, 2016
1 parent e19927a commit 06ed5f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/twisted/conch/ui/tkvt100.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
Maintainer: Paul Swartz
"""

import Tkinter, tkFont
import ansi
try:
import tkinter as Tkinter
import tkinter.font as tkFont
except ImportError:
import Tkinter, tkFont
import string
from . import ansi

ttyFont = None#tkFont.Font(family = 'Courier', size = 10)
fontWidth, fontHeight = None,None#max(map(ttyFont.measure, string.letters+string.digits)), int(ttyFont.metrics()['linespace'])
Expand Down

0 comments on commit 06ed5f1

Please sign in to comment.