473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

2D canvas for GTK

I need a (decent) canvas for PyGTK. I used tkinter.canvas with real pleasure
in the past but now I need to use the canvas in a Gtk application. Does
anybody know of one with similar capabilities? It must work on Windows too.
It must be able to produce postscript output.

Thanks

sandro
*:-)

--
Sandro Dentella *:-)
http://www.tksql.org TkSQL Home page - My GPL work
Jan 8 '06 #1
3 2228

"Sandro Dentella" <sa****@e-den.it> wrote in message
news:sl*******************@bluff.diade.it...
I need a (decent) canvas for PyGTK. I used tkinter.canvas with real
pleasure
in the past but now I need to use the canvas in a Gtk application. Does
anybody know of one with similar capabilities? It must work on Windows
too.
It must be able to produce postscript output.


I think that PyCairo might be what you're looking for, at least if you're
using gtk 2.8.
Jan 9 '06 #2
Il 2006-01-09, John Bauman <jo**@baumanfamily.com> ha scritto:

"Sandro Dentella" <sa****@e-den.it> wrote in message
news:sl*******************@bluff.diade.it...
I need a (decent) canvas for PyGTK. I used tkinter.canvas with real
pleasure
in the past but now I need to use the canvas in a Gtk application. Does
anybody know of one with similar capabilities? It must work on Windows
too.
It must be able to produce postscript output.


I think that PyCairo might be what you're looking for, at least if you're
using gtk 2.8.


No, that's definitely a lower level tool. I need someting that has
rectangles, lines, possibility to move object around, easy bindings, tags
for objects, grouping. All that is already in tkinter.canvas but I need to
use it from a GTK application.

Any other ideas?

sandro
*:-)

--
Sandro Dentella *:-)
http://www.tksql.org TkSQL Home page - My GPL work
Jan 9 '06 #3
In article <sl*******************@bluff.diade.it>, Sandro Dentella wrote:
Il 2006-01-09, John Bauman <jo**@baumanfamily.com> ha scritto:

"Sandro Dentella" <sa****@e-den.it> wrote in message
news:sl*******************@bluff.diade.it...
I need a (decent) canvas for PyGTK. I used tkinter.canvas with real
pleasure
in the past but now I need to use the canvas in a Gtk application. Does
anybody know of one with similar capabilities? It must work on Windows
too.
It must be able to produce postscript output.


I think that PyCairo might be what you're looking for, at least if you're
using gtk 2.8.


No, that's definitely a lower level tool. I need someting that has
rectangles, lines, possibility to move object around, easy bindings, tags
for objects, grouping. All that is already in tkinter.canvas but I need to
use it from a GTK application.

Any other ideas?


If you can afford the include GNOME as a dependency, then gnome-canvas or diacanvas2
is your best bet.

dave
Jan 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mickel Grönroos | last post by:
Hi, I'm trying to put an Tkinter.Entry of fixed size onto a specific location on a canvas using the place manager. The idea is that one can double-click a rectangle object on a canvas to get an...
1
by: Mickel Grönroos | last post by:
Hi, I have a Tkinter.Canvas of variable width. Is there a standard way of asking the canvas which parts of it that is visible? I.e. on the horizontal scale, I would like to know at what fraction...
5
by: Andrew Poulos | last post by:
Is there a right/best way to draw an ellipse using Canvas? (With VML there's the v:oval element which makes the exercise trivial). I tried drawing a 360 degree arc (a circle) and then scaling it...
11
by: Aaron Gray | last post by:
Hi, I have put together a bit of JavaScript to make a square resizable canvas :- http://www.aarongray.org/Test/JavaScript/resizable.html Problems I have :- a) I cannot seem to center it...
3
by: moondaddy | last post by:
I'm working in a WPF windows application and am wondering if it's possible to rotate a Canvas or user control derived from Canvas. I created a user control which derives from Canvas and I need to...
2
TMS
by: TMS | last post by:
Schools over!!! Now its time to play. I would like to learn how to make objects move from one location to the next on a canvas widget. For example: from Tkinter import * class square:...
6
by: Nebulism | last post by:
I have been attempting to utilize a draw command script that loads a canvas, and through certain mouse events, draws rectangles. The original code is from...
2
by: devnew | last post by:
hi i am new to tkinter and would like some help with canvas i am doing validation of contents of a folder and need to show the ok/error messages on a canvas resultdisplay =Canvas(...)...
10
by: blaine | last post by:
Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is...
4
by: moondaddy | last post by:
I have a wpf project where I use a canvas to drag shapes around. when I drag a shape beyond the right or bottom side I get scrollbars which is good. I also get scrollbars when I zoom in and a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.