Re: [Qgis-user] python plugin action vs mode tool

2008-01-17 Thread Düster Horst
] Betreff: Re: [Qgis-user] python plugin action vs mode tool On Jan 16, 2008 8:42 PM, Richard Duivenvoorde [EMAIL PROTECTED] wrote: My 'problem': I've build a sort of XY-Info tool plugin, like the raster info plugin in the repository. But mine is suppossed to be a tool like the zoom tool

Re: [Qgis-user] python plugin action vs mode tool

2008-01-17 Thread Martin Dobias
On Jan 17, 2008 10:07 AM, Düster Horst [EMAIL PROTECTED] wrote: gLine = QgsGeometry.fromPolyline( [ QgsPoint(1,1), QgsPoint(2,2) ] ) # buffer with distance 0.5, use 5 segments to approximate curves gBuffer = gLine.buffer(0.5, 5) print gBuffer.asPolygon() The buffer() method is a great

Re: [Qgis-user] python plugin action vs mode tool

2008-01-14 Thread Tim Sutton
Hi We have the same idea already implemented for C++ programmers for some time - so maybe Martin could extend the plugin build to ask which language you want your plugin to be in and then build from a python plugin template when applicable. Qt automatically changes the brightness of buttons