Re: [pygtk] How to install pyGTK on Mac?

2012-01-03 Thread Arjan Molenaar
On 2 Jan 2012, at 22:30, Anders F Björklund wrote: > Arjan Molenaar: > >> When playing around I noticed DnD is not fully operational. I'm missing the >> context.targets. Since my app is quite dependent on DnD this is a big miss. >> >> Do you know if a newer

Re: [pygtk] How to install pyGTK on Mac?

2012-01-01 Thread Arjan Molenaar
On 1 Jan 2012, at 17:54, Anders F Björklund wrote: > Arjan Molenaar wrote: > >> There are a few things behaving slightly different in the Quartz version, >> but I think I can iron those out. >> >> Personally I have no trouble using X11, but towards users using

Re: [pygtk] How to install pyGTK on Mac?

2012-01-01 Thread Arjan Molenaar
On 1 Jan 2012, at 13:10, Anders F Björklund wrote: > Arjan Molenaar wrote: > >> I've been using Homebrew (https://github.com/mxcl/homebrew) for a while and >> I'm very happy with it. Big advantage is that it's not compiling everything >> from source (it

Re: [pygtk] How to install pyGTK on Mac?

2012-01-01 Thread Arjan Molenaar
Hi, I've been using Homebrew (https://github.com/mxcl/homebrew) for a while and I'm very happy with it. Big advantage is that it's not compiling everything from source (it's using the system Python installation). There are several forks with PyGtk included. I'm currently using https://github.

[pygtk] Overriding (un)realize signal on Gtk subclasses

2011-12-03 Thread Arjan Molenaar
Hi, I run into some trouble if I override the "realize" handler. In the example below I get warnings when subclassing Gtk.Button and the application terminates when subclassing Gtk.DrawingArea. from gi.repository import Gtk class MyButton(Gtk.Button): def do_realize(self): Gtk.Bu

Re: [pygtk] SIGBUS error on Mac OS X 10.7 with PyGobject 3.0.1

2011-11-04 Thread Arjan Molenaar
On 4 Nov 2011, at 10:08, Tomeu Vizoso wrote: > On Thu, Nov 3, 2011 at 21:06, Arjan Molenaar wrote: >> >> On 3 Nov 2011, at 17:25, Tomeu Vizoso wrote: >> >>> On Wed, Nov 2, 2011 at 08:46, Arjan Molenaar wrote: >>>> Hi, >>>> >>

Re: [pygtk] SIGBUS error on Mac OS X 10.7 with PyGobject 3.0.1

2011-11-03 Thread Arjan Molenaar
On 3 Nov 2011, at 17:25, Tomeu Vizoso wrote: > On Wed, Nov 2, 2011 at 08:46, Arjan Molenaar wrote: >> Hi, >> >> I'm working on porting my projects to Gtk3 and PyGobject3. However, I run >> into a nasty issue. >> >> I subclass Gtk.DrawingArea

[pygtk] SIGBUS error on Mac OS X 10.7 with PyGobject 3.0.1

2011-11-02 Thread Arjan Molenaar
Hi, I'm working on porting my projects to Gtk3 and PyGobject3. However, I run into a nasty issue. I subclass Gtk.DrawingArea in order to provide view functionality for a Gaphas canvas. For this I override some signals. Here's a minimal example that crashes on OS X: from gi.repository import

Re: [pygtk] Overriding interface properties

2011-10-17 Thread Arjan Molenaar
ve to implement the properties defined in the interface. GObject provides method for this: GObject.ObjectClass.override_property(). But how do I use this? Regards, Arjan On 17 Jun 2011, at 16:46, Just Fill Bugs wrote: > On 06/17/2011 05:05 PM, Arjan Molenaar wrote: >> >> On 17 Jun 2011,

Re: [pygtk] PYGTK

2011-10-14 Thread Arjan Molenaar
Hi, I would suggest not to use multi-threading unless you're absolutely sure you can't do it without. GObject has ways to deal with incoming events (network, disc, user input). See http://www.pygtk.org/docs/pygobject/glib-functions.html#function-glib--io-add-watch. Note that the most high perf

Re: [pygtk] Dynamic update

2011-10-14 Thread Arjan Molenaar
The observer pattern (publish/subscribe) comes to mind. Note that a GUI is an event driven system. You should somehow signal some GUI logic to do a redraw/update if the model (your network nodes) change. The most simple way is to let the nodes signal an event (call a function/method) that trigg

Re: [pygtk] PyGTK - py2app - Mac OS X

2011-10-13 Thread Arjan Molenaar
Hi, I was a bit disappointed in the capabilities of py2app in combination with PyGTK. I wrote a blog how to package a Python app with a simple shell script. http://blog.xebia.com/2011/03/31/bundling-a-python-application-on-mac-os-x-with-virtualenv/ Hope this helps, Arjan On 23 Sep 2011, at 1

[pygtk] ANNOUNCE: Gaphor 0.17.1

2011-09-29 Thread Arjan Molenaar
Hi, Finally, a new release of Gaphor, the UML modeling tool for GTK+/Gnome. Gaphor is an easy to use modeling environment. This means that you are able to create nice UML diagrams for documentation and to assist you with design decisions. Gaphor will help you create your applications. New in t

Re: [pygtk] Overriding interface properties

2011-06-19 Thread Arjan Molenaar
On 17 Jun 2011, at 16:46, Just Fill Bugs wrote: > On 06/17/2011 05:05 PM, Arjan Molenaar wrote: >> >> On 17 Jun 2011, at 05:25, Just Fill Bugs wrote: >> >>> On 06/17/2011 12:44 AM, Arjan Molenaar wrote: >>>> Hi, >>>> >>>> I&#x

Re: [pygtk] Overriding interface properties

2011-06-17 Thread Arjan Molenaar
On 17 Jun 2011, at 05:25, Just Fill Bugs wrote: > On 06/17/2011 12:44 AM, Arjan Molenaar wrote: >> Hi, >> >> I've started porting Gaphas to GTK+ 3 now, using PyGI on Linux. It all goes >> quite smoothly. Only now I'm running > > into the

[pygtk] Overriding interface properties

2011-06-16 Thread Arjan Molenaar
Hi, I've started porting Gaphas to GTK+ 3 now, using PyGI on Linux. It all goes quite smoothly. Only now I'm running into the problem that my widget should implement the Gtk.Scrollable interface. For that it should define a few properties. In C those need to be declared using g_object_class_ov

[pygtk] Enabling scroll adjustments in GI

2011-06-05 Thread Arjan Molenaar
Hi, Next hurdle in porting Gaphas is that Gaphas' view class is managaing adjustments by itself. On class level I used to call View.set_set_scroll_adjustments_signal("set-scroll-adjustments") to set the signal that should be emited when adjustments are changing on module level. This does not

Re: [pygtk] PyGObject timeout_add error

2011-06-05 Thread Arjan Molenaar
Thanks, Indeed, when calling it from GObject it works as expected. But timeout_add is not defined in the GObject gir file. Regards, Arjan On 5 Jun 2011, at 10:52, Just Fill Bugs wrote: > On 06/05/2011 05:19 AM, Arjan Molenaar wrote: >> Hi all, >> >> In the course of

Re: [pygtk] PyGObject timeout_add error

2011-06-04 Thread Arjan Molenaar
Hi all, In the course of porting Gaphas, I ran into the same issue Timo described several months ago: somehow it is not possible to call timeout_add(1, f). The same issue I see for GLib.idle_add. I'm running Mac OS X 10.6.7 Python 2.6.1 pygobject 2.28.2 GLib 2.27.5 GTK+ 2.23.3 Any clues? Rega

[pygtk] ANNOUNCE: Gaphor 0.17.0

2011-05-08 Thread Arjan Molenaar
Hi all, I'm glad to announce the release of Gaphor 0.17.0. Gaphor is an easy to use modeling environment. This means that you are able to create nice UML diagrams for documentation and to assist you with design decisions. Gaphor will help you create your applications. This release has the foll

[pygtk] blog: Bundling a Python application on Mac OS X with VirtualEnv

2011-03-31 Thread Arjan Molenaar
Hi all, I wrote a blog on how I package my Python+gtk application for OS X. http://blog.xebia.com/2011/03/31/bundling-a-python-application-on-mac-os-x-with-virtualenv/ Use it to your advantage ;) Regards, Arjan ___ pygtk mailing list pygtk@daa.com

Re: [pygtk] Using pyGtk under windows application

2011-03-05 Thread Arjan Molenaar
e showdialog and go > out and stop at the test2 msgbox. > > with qt I do the following > class Base: > def __init__(self): > self._app = QtGui.QApplication(sys.argv) > self.MainForm = QtGui.QWidget() > self.MainForm.resize(250, 150) > self.MainForm.setWindowTitle('

Re: [pygtk] Using pyGtk under windows application

2011-03-04 Thread Arjan Molenaar
Hi Matteo, I'm not totally sure if I get your question right, but it seems to me you should just create a new top-level window. With gtk.Window.set_transient_for() you're able to create a parent-child relation for this (utility) window. Regards, Arjan Op 4 mrt. 2011 22:55 schreef "Matteo Boscolo

[pygtk] svg to cairo

2011-02-16 Thread Arjan Molenaar
Hi, I'm looking for some tool that generates a bunch of cairo statements out of an svg (not render it to a bitmap directly like librsvg). AFAIK cairo does not support such a thing. I want to use this in my UML tool (http://gaphor.sf.net) for defining stereotype icons and such. Is there already

Re: [pygtk] PyGTK object escapes garbage collection

2010-12-23 Thread Arjan Molenaar
Small question, are the items that are not collected in the destroyed state? Regards, Arjan Op 23 dec. 2010 16:02 schreef "Gerald Britton" het volgende: > We encountered this problem in our project (gramps-project.org). It > took quite a bit of work to remove the refs to allow GC. Basically, we >

[pygtk] ANNOUNCE: Gaphor 0.16.0 / Gaphas 0.7.0

2010-10-15 Thread Arjan Molenaar
Gaphor 0.16.0 = Gaphor is a UML modeling tool written in Python. The code is stable for a while now, so it's about time we make a new release. Since the last version some nice new functionality has been added. Most notably: - Guides support from Gaphas 0.7.0 - "hand written" drawing

[pygtk] How to unit test DnD in gtk

2010-07-08 Thread Arjan Molenaar
Hi, For a few days now i've been struggling to get some tests done on the DnD code in Pygtk. I want to have a small test suite that checks if the DnD behaviour is as expected. However, I'm not able to figure out how to call what API's (and then) to trigger DnD behaviour from a unit test. Has a

Re: [pygtk] Detachable/dockable user interface

2010-03-16 Thread Arjan Molenaar
wrote: > Quoting "Arjan Molenaar" : > >> Hi, >> >> I checked both GDL and MonoDevelop. >> >> The MonoDevelop version is definitely more luxe than the GDL one. > > Yes, indeed. My only gripe with the MonoDevelop version is that you > can dock

[pygtk] ANNOUNCE: Gaphor 0.15.0

2010-03-15 Thread Arjan Molenaar
Hi all, I'm pleased to announce a new major release of Gaphor: 0.15.0 Gaphor is a UML modelling tool, written in Python. This makes it very easy to use (and very easy to extend -- and to write ;-) ). Install gaphor simply using easy-install: $ easy-install gaphor You can find the sources at

Re: [pygtk] Detachable/dockable user interface

2010-03-11 Thread Arjan Molenaar
On 11 Mar 2010, at 15:47, Dieter Verfaillie wrote: > Quoting "Arjan Molenaar" : > >> Hi, >> >> I checked both GDL and MonoDevelop. >> >> The MonoDevelop version is definitely more luxe than the GDL one. > > Yes, indeed. My only gripe with t

Re: [pygtk] Detachable/dockable user interface

2010-03-10 Thread Arjan Molenaar
It's actually quite a lot of code :(. I dropped the code on GitHub: http://github.com/amolenaar/MonoDockingWidget Porting time! Regards, Arjan On 5 Mar 2010, at 12:08, Dieter Verfaillie wrote: > Hello, > > Quoting "Arjan Molenaar" : >> What we want to have basically

Re: [pygtk] How to place widgets on a grid?

2010-03-09 Thread Arjan Molenaar
Hi, On 6 Mar 2010, at 19:26, Martin Drautzburg wrote: > Hello all, > > I've been struggeling with the following problem: I want to have a grid in > the > background and I want to put Buttons (or other Widgets) on the Grid. > > I tried painting the grid using a DrawingArea. Which works. But I

[pygtk] Detachable/dockable user interface

2010-03-04 Thread Arjan Molenaar
Hi all, For some time now we're struggling with the UI of Gaphor (http://gaphor.sf.net). What we want to have basically is a detachable user interface such as been used with Gimp and Inkscape. As far as I know there are no default widgets in GTK+ that provide this functionality. Is there any G

[pygtk] ANNOUNCE: Gaphor 0.15.0 beta 4

2010-02-24 Thread Arjan Molenaar
Hi all, I'm pleased to announce we feel confident enough to release a new beta of Gaphor: 0.15.0.b4 Gaphor is a UML modelling tool, written in Python. This makes it very easy to use (and very easy to extend -- and to write ;-) ). Install gaphor simply using easy-install: $ easy-install gaph

[pygtk] ANNOUNCE: Gaphor 0.6.0

2010-02-24 Thread Arjan Molenaar
Hi all, I'm proud to announce the official release of Gaphas 0.6.0. Gaphas is a diagramming widget for GTK+, written in Python. The latest release can be found on: http://pypi.python.org/pypi/gaphas/0.6.0 Sources can be found on: http://github.com/amolenaar/gaphas Issues, enh

Re: [pygtk] Gaphas 0.5.1 release

2010-02-13 Thread Arjan Molenaar
works if you have PyGTK and PyCairo installed. Kind regards, Arjan On 13 Feb 2010, at 15:57, Pietro Battiston wrote: > (private mail) > > Il giorno gio, 11/02/2010 alle 16.23 +0100, Arjan Molenaar ha scritto: >> Hi all, >> >> A new version of Gaphas is out. Gaphas is

[pygtk] Gaphas 0.5.1 release

2010-02-11 Thread Arjan Molenaar
Hi all, A new version of Gaphas is out. Gaphas is a diagram widget written in Python. It uses Cairo for rendering. This release fixed the following issues: - Can't undo deletion of a connected element properly - Fix horizontal toggle got orthogonal lines - Orthogonal lines should have at least

Re: [pygtk] preparing a PyGTK app for PyPi

2009-09-04 Thread Arjan Molenaar
Hi, seems like nobody responded ;/. Anyway, I do not set a dependency in setup.py because of the same reason you describe below. I just describe it in the description field, so it shows up on the PyPI. See http://pypi.python.org/pypi/gaphor. Regards, Arjan On 5 Aug 2009, at 09:50, Alessand

[pygtk] ANNOUNCE: gaphor 0.14.0

2009-07-08 Thread Arjan Molenaar
Hi all, I took the liberty to create a new Gaphor version: 0.14.0. Main improvements include: - Much faster file loading - Better user interaction when working with large diagrams. - Nice property editor Oh, and the development has moved to GitHub. Kind regards, Arjan

Re: [pygtk] PyGTK on OSX for Python.org Python

2009-06-08 Thread Arjan Molenaar
ort sys >>> sys.modules { returns a huge dict with module name -> module object } Regards, Arjan > Thanks for any help, > Chris > > > On Mon,, Jun 1, 2009 at 7:09 PM, Arjan Molenaar > wrote: >> Hi Chris, >> >> Does a simple "import gtk&quo

Re: [pygtk] PyGTK on OSX for Python.org Python

2009-06-01 Thread Arjan Molenaar
Hi Chris, Does a simple "import gtk" work? If not, where are the files "pygtk.py" and "gtk/__init__.py" located? Regards, Arjan On 17 May 2009, at 22:12, Chris Van Bael wrote: > Hi all, > > I'm trying to build an application on OS X. > First I installed Python 2.5 from Python.org. > Then I i

[pygtk] [ANNOUNCE] Gaphas 0.4.0

2009-05-29 Thread Arjan Molenaar
Hi all, I'm pleased to announce the next release of Gaphas, a diagram widget for GTK+/Python. Gaphas is a MVC canvas that uses Cairo for rendering. One of the nicer things of this widget is that the user (model) is not bothered with bounding box calculations: this is all done through Cairo.

Re: [pygtk] obsolete Win32 binaries

2005-10-06 Thread Arjan Molenaar
Hi, I've compiled PyGTK myself, using the gimp/~win32 libraries. If you have both MinGW and MSys installed you should be able to get things working. MSys can be used to compile using configure. You can compile PyGTK using the DOS command line (python setup.py). Regards, Arjan Quoting Nikos K

Re: [pygtk] Drag and drop with a GenericTreeModel

2004-11-30 Thread Arjan Molenaar
I use DND on a GenericTreeModel in Gaphor. http://cvs.sourceforge.net/viewcvs.py/gaphor/gaphor/gaphor/ui/namespace.py?rev=1.40&view=auto You should especially pay attention to the NamespaceView class, which basically does all the DND stuff. Regards, Arjan Don Allingham wrote: I've been trying to

[pygtk] Accelerators, -groups and -maps

2004-11-26 Thread Arjan Molenaar
Hi, I'm having some difficulty understanding the concepts of GtkAccelGroup in relation to accel-paths. I'm using accelerators throughout my project and they work. I put them in an accel_group and connect them to the gtkWindow. This all works fine. The only issue here is that I can not activate

Re: [pygtk] Reference counting in PyGTK

2004-11-17 Thread Arjan Molenaar
Nigel Tao wrote: When using the Python bindings to GTK or GLib, I have so far not bothered to think about reference counting. Is it the case that Python memory management / garbage collection and PyGTK work nicely in all cases so that I never have to think about it? Yes. PyGTK works very well wit

[pygtk] ANNOUNCE: Gaphor 0.7.0

2004-11-17 Thread Arjan Molenaar
Gaphor 0.7.0 Gaphor is an easy to use UML modeling environment written in Python. Gaphor has an UML 2.0 compliant data model. It's design is very extensible. Important changes = - XMI export plugin - Item alignment - Full featured undo mechanism - Copy/paste - usability improvements

Re: [pygtk] Intercepting shortcuts/accelerators

2004-11-12 Thread Arjan Molenaar
John Ehresman wrote: Arjan Molenaar wrote: Does anyone have an idea how to do this? It looks to me like it's a bit more complicated than "just" connecting to Window::key_pressed_event. It's not that much more complicated (I'm assuming you're using gtk 2.x)

[pygtk] Intercepting shortcuts/accelerators

2004-11-11 Thread Arjan Molenaar
it's a bit more complicated than "just" connecting to Window::key_pressed_event. (Of course I want the shortcut text in the menus visible as well). Regards, Arjan Molenaar Gaphor developer (http://gaphor.sourceforge.net) ___ pygtk mailing

Re: R: [pygtk] Strange threading behavior

2004-11-08 Thread Arjan Molenaar
Hi, maybe a bit OT, but I've posted a recipe on ASPN recently: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/327082. It might be a nice alternative to threads. I use it in my UML tool (Gaphor) when loading and saving diagrams. Regards, Arjan Thomas Mills Hinkle wrote: Okay, so I think

Re: [pygtk] diacanvas

2004-10-28 Thread Arjan Molenaar
What kind of documentation are you looking for. There is Gaphor of course (http://gaphor.sf.net). Written in Python, but it's quite complicated for an example. Please be more specific. Regards, Arjan agb wrote: Hi, does anyone have any pointers to using diacanvas gtk module? The documentation is

Re: [pygtk] How to prevent a widget updating

2004-10-01 Thread Arjan Molenaar
Hi, Chris Rouch wrote: I have a table containing buttons containing boxes containing icons and or labels. I want to change many of these boxes at once (e.g. replacing the icons with labels of vice versa). I do this by removing the children and creating new ones. I don't want to see the changes unti

Re: [pygtk] "Inspector" in PyGTK

2004-09-16 Thread Arjan Molenaar
Hi, Have you looked at the LiveObjectBrowser in the Python cookbook? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/300304 Regards, Arjan Luca Manini wrote: Hi, I'm new to PyGTK (and to this list), and with the Tutorial at hand I'm trying to get a start. I'll like to write an "inspector"

[pygtk] ANNOUNCE: Gaphor 0.5.1

2004-08-29 Thread Arjan Molenaar
Gaphor 0.5.1 Gaphor is an easy to use UML modeling environment written in Python. Gaphor has an UML 2.0 compliant data model. It's design is very extensible. Changes since 0.5.0 === - Fixed a bug in the installation procedure Important changes for 0.5.0 === -

Re: [pygtk] Text handling within PyGTK questions

2004-08-27 Thread Arjan Molenaar
Art Haas wrote: Hi. My PythonCAD work has lately been in dealing with text, and I'm turning to the list in an effort to get some suggestions and help. The root of my difficulties is the way I'm trying to define and handle text sizes. I want the text size in a drawing to be defined as a floating po

Re: [pygtk] ANNOUNCE: Gaphor 0.5.0

2004-08-26 Thread Arjan Molenaar
Gustavo J. A. M. Carneiro wrote: A Qua, 2004-08-25 às 07:28, Arjan Molenaar escreveu: Gaphor 0.5.0 Gaphor is an easy to use UML modeling environment written in Python. Gaphor has an UML 2.0 compliant data model. It's design is very extensible. It would be nice to know the depende

[pygtk] ANNOUNCE: Gaphor 0.5.0

2004-08-25 Thread Arjan Molenaar
Gaphor 0.5.0 Gaphor is an easy to use UML modeling environment written in Python. Gaphor has an UML 2.0 compliant data model. It's design is very extensible. Important changes = - Support for Stereotypes, - Support for UseCases, - Plugins - Packages can be reordered by drag-and-drop

Re: [pygtk] a widget like gimp's canvas

2004-08-04 Thread Arjan Molenaar
Hi, You should have a look at how Dia does this. It's C code alright, but it shows exactly what you want (don't know the class to look, probably lib/display.c). All I can remember is that it's pretty easy (in the end ;-). Regards, Arjan Johannes Zellner wrote: On Wed, Aug 04, 2004 at 10:41:52AM

[pygtk] Gaphor on win32

2004-07-01 Thread Arjan Molenaar
Hi, I finally made it: gaphor works (more or less) on Win32 (xp). There are some issues though: the stock icons do not want to be loaded since it expects C: (the drive name) to be a URL type. There are also some issues with forward and abckward slashes. Furthermore, no threads should be lauched

Re: [pygtk] Getting PyGTK to work on win32 (xp)

2004-06-29 Thread Arjan Molenaar
d the trick. Regards, Arjan Cedric Gustin wrote: On Mon, 2004-06-28 at 14:51, Arjan Molenaar wrote: The real problem is the fact that the gtk module can't be imported (and Python exits). Do you have any clue how I can solve this? It's suggesting a version mismatch, but only one pyth

Re: [pygtk] Getting PyGTK to work on win32 (xp)

2004-06-29 Thread Arjan Molenaar
Cedric Gustin wrote: On Mon, 2004-06-28 at 14:51, Arjan Molenaar wrote: The real problem is the fact that the gtk module can't be imported (and Python exits). Do you have any clue how I can solve this? It's suggesting a version mismatch, but only one python is currently installed. D

Re: [pygtk] Getting PyGTK to work on win32 (xp)

2004-06-28 Thread Arjan Molenaar
The real problem is the fact that the gtk module can't be imported (and Python exits). Do you have any clue how I can solve this? It's suggesting a version mismatch, but only one python is currently installed. Thanks, Arjan Cedric Gustin wrote: On Mon, 2004-06-28 at 13:30, Arjan Mole

[pygtk] Getting PyGTK to work on win32 (xp)

2004-06-28 Thread Arjan Molenaar
an unusual way. Please contact the application's support team for more information. Python 2.3.4 is the only version currently installed on the system (have tried 2.2.3, but removed it again). Any ideas hoe to get this working? NB. The GTK libraries do work (I have both GnomeCanvas and my Dia

[pygtk] Re: Stock items and accelerators

2004-05-17 Thread Arjan Molenaar
Hi, Indeed, this way things seems to work. Only I do not use the ItemFactory, since I have an action-like implementation in Python (changing sensitivity and stuff). The odd thing is that default stock icons (such as 'gtk-new') have an accelerator, but stock items created by me do not. Although

[pygtk] ANNOUNCE: Gaphor 0.3.0

2004-04-13 Thread Arjan Molenaar
://gaphor.sourceforge.net Try it, you'll like it. Regards, Arjan Molenaar ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] pyorbit in CVS

2002-09-23 Thread Arjan Molenaar
Hi, What made you decide to start from scratch and build new ORBit bindings? Does this imply that the code will be more in line with the pygtk code? BTW. you forgot to check in pyorbit/src/Makefile.am. Regards, Arjan On Mon, 2002-09-23 at 08:46, James Henstridge wrote: > I have checked into C

[pygtk] Dynamic menus

2002-09-11 Thread Arjan Molenaar
Hi, What's the best way to create dynamic menus (the user can change the menu content through a dialog box and plugins can add their). I'm currently coding in Python, but a C example/implementation is fine. I am thinking about some sort of XML file where I save the menu configuration (maybe usin

Re: [pygtk] problem generating diacanvas python wrappers

2002-09-10 Thread Arjan Molenaar
On Fri, 2002-09-06 at 20:16, Mathew Yeates wrote: > Hi, not sure if this is a pygtk problem or a diacanvas problem (I also > posted > to the diacanvas list). > > I have pygtk 1.99.13 installed and when I try and generate python > wrappers for diacanvas > I get into an infinite loop. > > --

[pygtk] ANNOUNCE: Gaphor 0.1.0

2002-09-06 Thread Arjan Molenaar
Finally... Gaphor 0.1.0... What is Gaphor? --- Gaphor is a Unified Modeling Language (UML) modeling tool (CASE tool) written in Python. It is designed to be nice looking with extensibility in mind. It's data model is based upon the UML version 1.4 specifications. Gaphor 0.1.0 support

Re: [pygtk] faking events

2002-08-30 Thread Arjan Molenaar
On Fri, 2002-08-30 at 01:05, Rob Brown-Bayliss wrote: > > Hi. I am having a problem with the gnome canvas redrawing. > > All works fine until I decide to show or hide some widgets on the > canvas, then it seems that the canvas is not redrawing correctly until I > mouse over the objects. > > Is

Re: [pygtk] No menu via ItemFactory

2002-08-20 Thread Arjan Molenaar
On Tue, 2002-08-20 at 15:41, James Henstridge wrote: > Arjan Molenaar wrote: > > > > > > Looks like this was caused by some reference leak fixes. When the item > factory goes out of scope, it gets destroyed, and all the items it > created go with it. > >

[pygtk] No menu via ItemFactory

2002-08-20 Thread Arjan Molenaar
Hi all, I'm having some trouble displaying a menubar that is generated by an ItemFactory. Since my last update (this morning, first update since about two weeks), no menubar is displayed on top of my app. I checked the PyGtk demo app (item factory) and it doesn't show the menubar too. If I start

[pygtk] small reference leak in get/set_property

2002-08-01 Thread Arjan Molenaar
Hi, I've fixed a small reference leak in the get/set_property wrappers. It's also registered as bug #71021. Regards, Arjan Index: pygtk/gobjectmodule.c === RCS file: /cvs/gnome/gnome-python/pygtk/gobjectmodule.c,v retrieving rev

[pygtk] Reference leak in signal marshaller

2002-07-05 Thread Arjan Molenaar
Hi, While I was doing some testing on the Python code of DiaCanvas2 I noticed a small reference leak in the signal handler. I added it to bugzilla with id #87413. Regards, Arjan PS. I also added a small patch that creates a getrefcount() for GObjects. This really helps squashing reference leak

Re: [pygtk] How to set background of a label! HELP!!!

2002-07-01 Thread Arjan Molenaar
On Mon, 2002-07-01 at 15:34, Jacek Pliszka wrote: > On 1 Jul 2002, Graham Ashton wrote: > > > http://www.moeraki.com/pygtktutorial/ch-settingwidgetattributes.html#WIDGET_STYLES > > Aaaa.. I have to apply it to the label! I must say this thing really > sucks. > > 1. I have to add event_box > >

[pygtk] question about cyclic referencing GObjects

2002-06-10 Thread Arjan Molenaar
Hi, I have a small question about references. The problem is the DiaCanvas. each canvas item can hold a bunch of sub-items and each canvas item has it's own wrapper object. In combination with some data objects written in Python cyclic references could occur. Normally this would not be a problem

[pygtk] Experience with GNOME applications

2002-05-31 Thread Arjan Molenaar
Hi, I was thinking about the design of Gaphor (http://gaphor.sourceforge.net) and I want to write it all in Python. Although I have quite some experience with writing GTK+, but am quite unfamiliar with the capabilities of the GNOME libraries. Are there any 'big' applications written in Python us

[pygtk] multiple bases have instance lay-out conflict

2002-05-26 Thread Arjan Molenaar
Hi, I came up with something, well, weird... It is possible in Python to inherit from two GObject classes, but I can not inherit from one GObject class and a GInterface. This might sound strange, but I have created some callback functions ala GtkGenericTreeModel and I would like my Python classes

[pygtk] multiple bases have instance lay-out conflict

2002-05-23 Thread Arjan Molenaar
Hi, I came up with something, well, weird... It is possible in Python to inherit from two GObject classes, but I can not inherit from one GObject class and a GInterface. This might sound strange, but I have created some callback functions ala GtkGenericTreeModel and I would like my Python classes

[pygtk] defs in gnome-python

2002-05-01 Thread Arjan Molenaar
Hi, I noticed the .defs files in gnome-python/gnome-python are not copied to shape/pygtk/2.0/defs. This is very unpleasant since I inherit from GnomeCanvas for DiaCanvas view class. I posted a bug (#80448) on bugzilla.gnome.org and applied a patch. Regards, Arjan __

[pygtk] Inheriting from GObject

2002-05-01 Thread Arjan Molenaar
Hi, I'm working on a python wrapper for DiaCanvas2 (hence the previous postings ;-) and came up with some thoughts... First of all: the properties and signal handling in Python is really neat. But it's screaming for more... Shouldn't it be nice if classes inherited from GObject (or GTK+ objects

[pygtk] defs in gnome-python

2002-05-01 Thread Arjan Molenaar
Hi, I noticed the .defs files in gnome-python/gnome-python are not copied to shape/pygtk/2.0/defs. This is very unpleasant since I inherit from GnomeCanvas for DiaCanvas view class. I posted a bug (#80448) on bugzilla.gnome.org and applied a patch. Regards, Arjan

[pygtk] constructors in h2def.py

2002-05-01 Thread Arjan Molenaar
Hi, I used h2def.py this weekend and noticed it does not create 'is-constructor-of' entries in the generated code. I started browsing the code and noticed this is a todo item. I solved it this way: - a constructor function ends with '_new' and returns a pointer - h2def converts the text before th