[pygtk] Redrae Button
Good Night lisr, How could i redraw a button with a CairoContext ? ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Drawing a PNG on a gtk.DrawingArea
2009/9/12 John Finlay > What happens if you try drawing the original pixbuf? > > John > Your hint was right, my rescaling went the wrong way; displaying the original pixbuf worked ok, I messed up the rescaling... Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Resizing an hbox
> Try the "size-allocate" signal. Yes, that's it, thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Resizing an hbox
Fabrice DELENTE wrote: > Hello. > > I have an interface which is a simple toplevel window containing an hbox > which contains a gtk.DrawingArea, designed in glade. > > How can I catch the fact that the hbox or the DrawingArea are resized when > the toplevel is resized in the window manager? > > I thought that connecting the check-resize event of the hbox would be > enough, but it doesn't work. Is there a flag to set somewhere? > > Thanks! > > Try the "size-allocate" signal. John ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Drawing a PNG on a gtk.DrawingArea
Fabrice DELENTE wrote: > Hello. > > I'm still struggling with displaying a PNG image on a gtk.DrawingArea. I > designed a glade interface that is basically a toplevel window with an hbox > in it. I then add() a gtk.DrawingArea in the hbox. > > I'm trying to display the image this way: > > fichier = > "/home/fab/tex/courante/TES/partie1/equations_et_inequations_du_second_degre.png" > self.imageOriginelle = gtk.gdk.pixbuf_new_from_file(fichier) > self.imageReduite = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 500, > 700) > self.imageOriginelle.scale(self.imageReduite, 0, 0, 500, 700, 0, 0, > self.imageOriginelle.get_width()/500.0, > self.imageOriginelle.get_height()/700.0, > gtk.gdk.INTERP_HYPER) > > I do this because I need to rescale the image so that it fits in my > interface. The 500 and 700 values are arbitrary and for tests purposes only. > > I then try to display it: > > self.GC = gtk.gdk.GC(self.zoneDeDessin.window) > self.zoneDeDessin.window.draw_pixbuf(self.GC, self.imageReduite, 0, 0, 0, > 0) > > where self.zoneDeDessin is the gtk.DrawingArea object I add()ed to the hbox. > > I can see a white rectangle, but no image in it. What did I miss? > > What happens if you try drawing the original pixbuf? John ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] ANNOUNCE - Sqlkit 0.8.6
ANNOUNCE: sqlkit 0.8.6 September, 12 - 2009 I'm happy to announce release 0.8.6 of sqlkit package for python. http://sqlkit.argolinux.org/ This release This is the first stable release. It features a new interface for the standalone command (sqledit), many improvements and functions added. We have used pyinstaller to create standalone executable for Linux and Mac, you can download them to use the application and to run the demo. It's now registered in pypi so you can 'easy_install' it, if you already installed pygtk. I'm currently looking for a debian sponsor to upload the package in sqeeze. A new tutorial is available here: http://sqlkit.argolinux.org/sqlkit/tutorial.html Refer to http://sqlkit.argolinux.org/download/Changelog for details The package --- SQLkit PyGtk package provides Mask and Table widgets to edit database data. It's meant as a base for database desktop applications. The application --- It also provides 'sqledit' a PyGTK application based on sqlkit that can be used from command line to browse and edit data. The package has 2 very rich demo suites for sql widgets (the main one in sqlkit/demo/sql/demo.py) and for layout creation Translations If you like sqlkit and want to help translating, you may find the project on: https://launchpad.net/sqlkit Main features of sqlkit: * editor of databases in 2 modes: table & mask * based on sqlalchemy: can cope with many different databases * very powerfull filtering capabilities: - each field can be used to filter records - filter may span relationship - date filtering possible also on relative basis (good for saved queries) * completion on all text field and foreign keys * very easy way to draw a layout for mask views * completely effortless editing of relationships * very easy way to set defaults * possibility to display totals of numeric fields * any possible sql constraint can be attached to a Mask or a Table. It can be expressed a s a normal sqlalchemy query or with django-like syntax * sqledit: python script to edit db Sqlkit is based on: --- * python (>= 2.4 - but developed on 2.5) * PyGtk * Sqlalchemy (>= 0.5) * glade * python-dateutil * babel (localization) * you db driver of choice Dowload & more: --- * Download: http://sqlkit.argolinux.org/sqlkit/download.html easy_install sqlkit * Source: hg clone http://hg.argolinux.org/py/sqlkit * Google Group: http://groups.google.it/group/sqlkit/ * Translation: https://launchpad.net/sqlkit * Tutorial: http://sqlkit.argolinux.org/sqlkit/tutorial.html * Changelog:http://sqlkit.argolinux.org/download/Changelog * License: GNU GPL -- Sandro Dentella *:-) http://sqlkit.argolinux.orgSQLkit home page - PyGTK/python/sqlalchemy ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] ANNOUNCE: Spiff GtkWidgets (goocalendar, AnnotatedTextView, color tools)
Hi Samuel, On Wed, Jun 25, 2008 at 09:18:52PM +0200, Samuel Abels wrote: > Hi, > > I am happy to announce Spiff GtkWidgets, a collection of Gtk widgets > written in Python. > > SpiffGtkWidgets.Calendar > - > About a year ago I dropped a calendar widget similar to Google Calendar > on this list (goocalendar). I wasn't planning to maintain it back then, > but now I rewrote it, and ported it to hippocanvas. The end result is a > much improved calendar: > - Improved event layout. > - Significantly higher (font) rendering quality thanks to hippocanvas. i'd like to port this to goocanvas, are you still on this list? I'd like to ask you some details if you are available. sandro *:-) ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Resizing an hbox
Il giorno sab, 12/09/2009 alle 12.06 +0200, Fabrice DELENTE ha scritto: > Hello. > > I have an interface which is a simple toplevel window containing an hbox > which contains a gtk.DrawingArea, designed in glade. > > How can I catch the fact that the hbox or the DrawingArea are resized when > the toplevel is resized in the window manager? > I'd read http://www.pygtk.org/pygtktutorial/sec-eventhandling.html Pietro signature.asc Description: Questa è una parte del messaggio firmata digitalmente ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] Resizing an hbox
Hello. I have an interface which is a simple toplevel window containing an hbox which contains a gtk.DrawingArea, designed in glade. How can I catch the fact that the hbox or the DrawingArea are resized when the toplevel is resized in the window manager? I thought that connecting the check-resize event of the hbox would be enough, but it doesn't work. Is there a flag to set somewhere? Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] Drawing a PNG on a gtk.DrawingArea
Hello. I'm still struggling with displaying a PNG image on a gtk.DrawingArea. I designed a glade interface that is basically a toplevel window with an hbox in it. I then add() a gtk.DrawingArea in the hbox. I'm trying to display the image this way: fichier = "/home/fab/tex/courante/TES/partie1/equations_et_inequations_du_second_degre.png" self.imageOriginelle = gtk.gdk.pixbuf_new_from_file(fichier) self.imageReduite = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 500, 700) self.imageOriginelle.scale(self.imageReduite, 0, 0, 500, 700, 0, 0, self.imageOriginelle.get_width()/500.0, self.imageOriginelle.get_height()/700.0, gtk.gdk.INTERP_HYPER) I do this because I need to rescale the image so that it fits in my interface. The 500 and 700 values are arbitrary and for tests purposes only. I then try to display it: self.GC = gtk.gdk.GC(self.zoneDeDessin.window) self.zoneDeDessin.window.draw_pixbuf(self.GC, self.imageReduite, 0, 0, 0, 0) where self.zoneDeDessin is the gtk.DrawingArea object I add()ed to the hbox. I can see a white rectangle, but no image in it. What did I miss? Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/