summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-12 22:02:51 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-12 22:02:51 +0200
commit29ee4406d2ad7ee222be1673f5e675267c123c09 (patch)
treea0bc3f2b53d6b0f863cb83cd8fb08a116b52222a /gui.py
parent42d9dfe804bf93b33a0336ff7effecf33b2e04b7 (diff)
downloadpylint-29ee4406d2ad7ee222be1673f5e675267c123c09.tar.gz
Make pylint-gui work again on Python 3.
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/gui.py b/gui.py
index bf624b4..62a6e76 100644
--- a/gui.py
+++ b/gui.py
@@ -19,13 +19,19 @@ from __future__ import print_function
import os
import sys
import re
-import Queue
from threading import Thread
-from Tkinter import (Tk, Frame, Listbox, Entry, Label, Button, Scrollbar,
- Checkbutton, Radiobutton, IntVar, StringVar)
-from Tkinter import (TOP, LEFT, RIGHT, BOTTOM, END, X, Y, BOTH, SUNKEN, W,
- HORIZONTAL, DISABLED, NORMAL, W)
-from tkFileDialog import askopenfilename, askdirectory
+
+import six
+
+from six.moves.tkinter import (
+ Tk, Frame, Listbox, Entry, Label, Button, Scrollbar,
+ Checkbutton, Radiobutton, IntVar, StringVar,
+ TOP, LEFT, RIGHT, BOTTOM, END, X, Y, BOTH, SUNKEN, W,
+ HORIZONTAL, DISABLED, NORMAL, W,
+)
+from six.moves.tkinter_tkfiledialog import (
+ askopenfilename, askdirectory,
+)
import pylint.lint
from pylint.reporters.guireporter import GUIReporter
@@ -119,7 +125,7 @@ class LintGui(object):
#reporter
self.reporter = None
#message queue for output from reporter
- self.msg_queue = Queue.Queue()
+ self.msg_queue = six.moves.queue.Queue()
self.msgs = []
self.visible_msgs = []
self.filenames = []
@@ -376,7 +382,7 @@ class LintGui(object):
fg_color = COLORS.get(msg_str[:3], 'black')
self.lb_messages.itemconfigure(END, fg=fg_color)
- except Queue.Empty:
+ except six.moves.queue.Empty:
pass
return True