annotate AddFeed.py @ 37:22214d79ed41
database URL must be given as commandline argument now, no need for creating complicated config files. Add a menu entry for opening the selected article in browser.
author |
Dirk Olmes <dirk@xanthippe.ping.de> |
date |
Fri, 14 May 2010 06:16:05 +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)
|