From 1814f12152d323d616a2c5ce2cc5659f7b8fd72c Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 5 Apr 2016 18:15:09 +0800 Subject: [PATCH] gui/datasets: rm unused imports/style --- artiq/gui/datasets.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/artiq/gui/datasets.py b/artiq/gui/datasets.py index 8fa04e355..72bd0d030 100644 --- a/artiq/gui/datasets.py +++ b/artiq/gui/datasets.py @@ -1,6 +1,4 @@ import asyncio -from collections import OrderedDict -from functools import partial import logging from PyQt5 import QtCore, QtWidgets @@ -16,8 +14,8 @@ logger = logging.getLogger(__name__) class Model(DictSyncTreeSepModel): def __init__(self, init): DictSyncTreeSepModel.__init__(self, ".", - ["Dataset", "Persistent", "Value"], - init) + ["Dataset", "Persistent", "Value"], + init) def convert(self, k, v, column): if column == 1: @@ -25,7 +23,7 @@ class Model(DictSyncTreeSepModel): elif column == 2: return short_format(v[1]) else: - raise ValueError + raise ValueError class DatasetsDock(QtWidgets.QDockWidget): @@ -46,7 +44,8 @@ class DatasetsDock(QtWidgets.QDockWidget): self.table = QtWidgets.QTreeView() self.table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) - self.table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) + self.table.setSelectionMode( + QtWidgets.QAbstractItemView.SingleSelection) grid.addWidget(self.table, 1, 0) self.table.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)