1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 19:08:07 +00:00

Remove required rependency to PyQt4

This commit is contained in:
slush0 2014-02-03 19:30:40 +01:00
parent b3f9390ded
commit 15d8c840b5

3
cmd.py
View File

@ -8,7 +8,6 @@ import threading
from trezorlib.client import TrezorClient, pin_func from trezorlib.client import TrezorClient, pin_func
from trezorlib.debuglink import DebugLink from trezorlib.debuglink import DebugLink
from trezorlib.protobuf_json import pb2json from trezorlib.protobuf_json import pb2json
from trezorlib.pinmatrix import PinMatrixWidget
def parse_args(commands): def parse_args(commands):
parser = argparse.ArgumentParser(description='Commandline tool for Trezor devices.') parser = argparse.ArgumentParser(description='Commandline tool for Trezor devices.')
@ -253,6 +252,8 @@ class PinMatrixThread(threading.Thread):
self.pin_value = '' self.pin_value = ''
def run(self): def run(self):
from trezorlib.pinmatrix import PinMatrixWidget
import sys import sys
from PyQt4.Qt import QApplication, QWidget, QVBoxLayout from PyQt4.Qt import QApplication, QWidget, QVBoxLayout
from PyQt4.QtGui import QPushButton, QLabel from PyQt4.QtGui import QPushButton, QLabel