diff AddFeed.py @ 27:bdd1296a4b8c

implemented adding a feed
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 29 Apr 2010 06:47:47 +0200
parents
children 6eba4168fd54
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AddFeed.py	Thu Apr 29 06:47:47 2010 +0200
@@ -0,0 +1,16 @@
+
+from PyQt4 import QtGui
+from Ui_AddFeed import Ui_AddFeed
+
+class AddFeed(QtGui.QDialog):
+    def __init__(self, session=None):
+        QtGui.QWidget.__init__(self, None)
+        self.session = session
+        self.ui = Ui_AddFeed()
+        self.ui.setupUi(self)
+        self.ui.url.setFocus()
+    
+    def getUrl(self):
+        text = self.ui.url.text()
+        # the content of a QLineEdit is a QString, convert it to a Python string
+        return str(text)