diff FeedSettings.py @ 218:699d8f1cebd4

unify imports, especially Qt imports. Use consistent super syntax
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 27 Apr 2014 06:04:57 +0200
parents bb3c851b18b1
children 8e73a8ae863f
line wrap: on
line diff
--- a/FeedSettings.py	Sun Apr 27 05:33:34 2014 +0200
+++ b/FeedSettings.py	Sun Apr 27 06:04:57 2014 +0200
@@ -1,14 +1,14 @@
 # -*- coding: utf-8 -*-
-from PyQt4 import QtGui
+from PyQt4.QtGui import QDialog
 from Ui_FeedSettings import Ui_FeedSettings
 
-class FeedSettings(QtGui.QDialog):
+class FeedSettings(QDialog):
     """
     Copy all feed properties into the GUI on initialization. Collect all changes
     in a separate dict that's passed into the backend along with the feed to modify.
     """
     def __init__(self, backend):
-        QtGui.QWidget.__init__(self, None)
+        super(FeedSettings, self).__init__(None)
         self.backend = backend
         self.feed = backend.selectedFeed
         self.changes = {}
@@ -45,4 +45,4 @@
 
     def accept(self):
         self.backend.updateFeed(self.feed, self.changes)
-        QtGui.QDialog.accept(self)
+        super(FeedSettings, self).accept()