mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
e160b01f84
commit
f86af16791
@ -12,7 +12,7 @@
|
|||||||
## You should have received a copy of the GNU General Public License along
|
## You should have received a copy of the GNU General Public License along
|
||||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
""" The GUI for libprs500. """
|
""" The GUI """
|
||||||
import sys, os, re, StringIO, traceback
|
import sys, os, re, StringIO, traceback
|
||||||
from PyQt4.QtCore import QVariant, QSettings, QFileInfo, QObject, SIGNAL, QBuffer, \
|
from PyQt4.QtCore import QVariant, QSettings, QFileInfo, QObject, SIGNAL, QBuffer, \
|
||||||
QByteArray, QLocale, QTranslator, QUrl
|
QByteArray, QLocale, QTranslator, QUrl
|
||||||
|
@ -186,7 +186,7 @@ if __name__ == '__main__':
|
|||||||
pixmaps.append(pm)
|
pixmaps.append(pm)
|
||||||
return pixmaps
|
return pixmaps
|
||||||
|
|
||||||
def create_mng(path='/home/kovid/work/libprs500/src/libprs500/gui2/images/jobs.svg', size=64, angle=5, delay=5):
|
def create_mng(path='', size=64, angle=5, delay=5):
|
||||||
pixmaps = create_pixmaps(path, size, angle)
|
pixmaps = create_pixmaps(path, size, angle)
|
||||||
filesl = []
|
filesl = []
|
||||||
for i in range(len(pixmaps)):
|
for i in range(len(pixmaps)):
|
||||||
|
@ -17,14 +17,14 @@ import urllib, re, traceback
|
|||||||
|
|
||||||
from PyQt4.QtCore import QThread, SIGNAL
|
from PyQt4.QtCore import QThread, SIGNAL
|
||||||
|
|
||||||
from libprs500 import __version__
|
from libprs500 import __version__, __appname__
|
||||||
from libprs500.ebooks.BeautifulSoup import BeautifulSoup
|
from libprs500.ebooks.BeautifulSoup import BeautifulSoup
|
||||||
|
|
||||||
class CheckForUpdates(QThread):
|
class CheckForUpdates(QThread):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
src = urllib.urlopen('http://pypi.python.org/pypi/libprs500').read()
|
src = urllib.urlopen('http://pypi.python.org/pypi/'+__appname__).read()
|
||||||
soup = BeautifulSoup(src)
|
soup = BeautifulSoup(src)
|
||||||
meta = soup.find('link', rel='meta', title='DOAP')
|
meta = soup.find('link', rel='meta', title='DOAP')
|
||||||
if meta:
|
if meta:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user