Mercurial > hg > Feedworm
annotate AddFeed.py @ 28:72dfae865899
better logging when updating feeds, handle entries that have no id
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 29 Apr 2010 07:04:42 +0200 |
parents | bdd1296a4b8c |
children | 6eba4168fd54 |
rev | line source |
---|---|
27 | 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) |