pybank r84 - trunk
- From: janimo svn gnome org
- To: svn-commits-list gnome org
- Subject: pybank r84 - trunk
- Date: Wed, 5 Nov 2008 19:50:49 +0000 (UTC)
Author: janimo
Date: Wed Nov 5 19:50:49 2008
New Revision: 84
URL: http://svn.gnome.org/viewvc/pybank?rev=84&view=rev
Log:
Make test apps run again
Modified:
trunk/ChangeLog
trunk/notify.py
trunk/simple.py
trunk/simple2.py
Modified: trunk/notify.py
==============================================================================
--- trunk/notify.py (original)
+++ trunk/notify.py Wed Nov 5 19:50:49 2008
@@ -7,6 +7,6 @@
n = Notify.Notification("test notification", "Test notification from pybank", None, None)
n.set_timeout(5000)
-n.show(None)
+n.show()
Notify.uninit()
Modified: trunk/simple.py
==============================================================================
--- trunk/simple.py (original)
+++ trunk/simple.py Wed Nov 5 19:50:49 2008
@@ -3,7 +3,7 @@
import bank
import GLib
-import PopplerGlib
+import Poppler
def main(args):
if len(args) < 2:
@@ -12,7 +12,7 @@
filename = args[1]
uri = 'file://' + os.path.abspath(filename)
- doc = PopplerGlib.PopplerDocument.new_from_file(uri, '', None)
+ doc = Poppler.Document.new_from_file(uri, '')
print doc
pages = doc.get_n_pages()
page = doc.get_page(0)
Modified: trunk/simple2.py
==============================================================================
--- trunk/simple2.py (original)
+++ trunk/simple2.py Wed Nov 5 19:50:49 2008
@@ -4,5 +4,5 @@
import GdkPixbuf
filename = sys.argv[1]
-p = GdkPixbuf.Pixbuf.new_from_file(filename, None)
+p = GdkPixbuf.Pixbuf.new_from_file(filename)
print 'Size of %s is %dx%d' % (filename, p.get_width(), p.get_height())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]