Localize Image import for now

This commit is contained in:
Neil Booth 2016-01-18 07:24:54 +09:00
parent d200b236ae
commit c99f0acfba
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
from functools import partial from functools import partial
import threading import threading
from PIL import Image
from PyQt4.Qt import Qt from PyQt4.Qt import Qt
from PyQt4.Qt import QGridLayout, QInputDialog, QPushButton from PyQt4.Qt import QGridLayout, QInputDialog, QPushButton
@ -360,6 +359,7 @@ class SettingsDialog(WindowModalDialog):
update() update()
def change_homescreen(): def change_homescreen():
from PIL import Image # FIXME
dialog = QFileDialog(self, _("Choose Homescreen")) dialog = QFileDialog(self, _("Choose Homescreen"))
filename = dialog.getOpenFileName() filename = dialog.getOpenFileName()
if filename: if filename: