[Joypy-announce] joypy/Joypy: Make joy/gui/controllerlistbox.py compatible with P...

アーカイブの一覧に戻る
scmno****@osdn***** scmno****@osdn*****
Sun May 17 02:45:04 JST 2020


changeset 3529c7d8a106 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=3529c7d8a106
user: Simon Forman <sform****@hushm*****>
date: Sat May 16 10:44:35 2020 -0700
description: Make joy/gui/controllerlistbox.py compatible with Python 3.

diffstat:

 joy/gui/controllerlistbox.py |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r ca0096e2bf94 -r 3529c7d8a106 joy/gui/controllerlistbox.py
--- a/joy/gui/controllerlistbox.py	Sat May 16 09:52:56 2020 -0700
+++ b/joy/gui/controllerlistbox.py	Sat May 16 10:44:35 2020 -0700
@@ -18,12 +18,15 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 '''
-from Tkinter import Listbox, SINGLE
-from Tkdnd import dnd_start
+from future import standard_library
+standard_library.install_aliases()
+from builtins import map, object, str
+from tkinter import Listbox, SINGLE
+from tkinter.dnd import dnd_start
 from joy.utils.stack import iter_stack, list_to_stack, expression_to_string
 
 
-class SourceWrapper:
+class SourceWrapper(object):
     '''
     Helper object for drag and drop.
     '''



More information about the Joypy-announce mailing list
アーカイブの一覧に戻る