Mercurial > hg > Feedworm
comparison 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 |
comparison
equal
deleted
inserted
replaced
26:f9a3223182c5 | 27:bdd1296a4b8c |
---|---|
1 | |
2 from PyQt4 import QtGui | |
3 from Ui_AddFeed import Ui_AddFeed | |
4 | |
5 class AddFeed(QtGui.QDialog): | |
6 def __init__(self, session=None): | |
7 QtGui.QWidget.__init__(self, None) | |
8 self.session = session | |
9 self.ui = Ui_AddFeed() | |
10 self.ui.setupUi(self) | |
11 self.ui.url.setFocus() | |
12 | |
13 def getUrl(self): | |
14 text = self.ui.url.text() | |
15 # the content of a QLineEdit is a QString, convert it to a Python string | |
16 return str(text) |