Skip to content

Commit 6334a3d

Browse files
committed
Fix tkinter import
1 parent d03efe7 commit 6334a3d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/com/dtmilano/android/culebron.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
'''
2+
"""
33
Copyright (C) 2012-2022 Diego Torres Milano
44
Created on oct 6, 2014
55
@@ -17,14 +17,13 @@
1717
1818
@author: Diego Torres Milano
1919
20-
'''
20+
"""
2121
from __future__ import print_function
2222

2323
import io
2424
import random
2525
import re
2626
import time
27-
from tkinter.filedialog import asksaveasfilename
2827
from typing import Any, Optional
2928

3029
import numpy
@@ -37,7 +36,7 @@
3736
from com.dtmilano.android.keyevent import KEY_EVENT
3837
from com.dtmilano.android.viewclient import ViewClient, View, VERSION_SDK_PROPERTY
3938

40-
__version__ = '21.17.2'
39+
__version__ = '21.17.3'
4140

4241
import sys
4342
import threading
@@ -47,6 +46,7 @@
4746
import platform
4847
from pkg_resources import Requirement, resource_filename
4948

49+
# noinspection PyBroadException
5050
try:
5151
import PIL
5252
from PIL import Image
@@ -55,6 +55,7 @@
5555
except:
5656
PIL_AVAILABLE = False
5757

58+
# noinspection PyBroadException
5859
try:
5960
from PIL import ImageTk
6061
import tkinter
@@ -64,6 +65,7 @@
6465
import tkinter.scrolledtext
6566
import tkinter.ttk
6667
from tkinter.constants import DISABLED, NORMAL
68+
from tkinter.filedialog import asksaveasfilename
6769

6870
TKINTER_AVAILABLE = True
6971
except:
@@ -75,6 +77,7 @@
7577
import ScrolledText
7678
import ttk
7779
from Tkconstants import DISABLED, NORMAL
80+
from tkinter.filedialog import asksaveasfilename
7881

7982
TKINTER_AVAILABLE = True
8083
except:

0 commit comments

Comments
 (0)