Connecting Tech Pros Worldwide Forums | Help | Site Map

Creation a Point in a Graphic Display

Needs Regular Fix
 
Join Date: Feb 2007
Posts: 438
#1: Mar 2 '07
Hi,

Can any body help me how to create a Point using Python Graphics?.

If possible Sample code will be great helpful.

Thanks in advacne
PSB

bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#2: Mar 2 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by psbasha

Hi,

Can any body help me how to create a Point using Python Graphics?.

If possible Sample code will be great helpful.

Thanks in advacne
PSB

By "Python Graphics", do you mean Tkinter? There are several packages (PIL for example).. Which one are you using?
Needs Regular Fix
 
Join Date: Feb 2007
Posts: 438
#3: Mar 2 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by bartonc

By "Python Graphics", do you mean Tkinter? There are several packages (PIL for example).. Which one are you using?

I am using Tkinter.But I have to create a Preview Graphics Window to show this.
Is there any sample example available?.

Thanks in advance
PSB
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#4: Mar 3 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by psbasha

I am using Tkinter.But I have to create a Preview Graphics Window to show this.
Is there any sample example available?.

Thanks in advance
PSB

Tkinter may get you started. It is very limited and there isn't too much support for it. Look in Python > Code (link is in the announcement for Tkinter Xmas graphic for some pretty nifty coding. Here is some old documentation that I used back when I was using Tkinter.
Needs Regular Fix
 
Join Date: Feb 2007
Posts: 438
#5: Mar 3 '07

re: Creation a Point in a Graphic Display


Is it possible to create the basic operations in the Graphic Display

- Rotate the displayed Point/Line
- Zoom (Zoom by Corner,Zoom by Window)
-Pan
-Fit

Thanks in advance

PSB
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#6: Mar 3 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by psbasha

Is it possible to create the basic operations in the Graphic Display

- Rotate the displayed Point/Line
- Zoom (Zoom by Corner,Zoom by Window)
-Pan
-Fit

Thanks in advance

PSB

I guess that if you had read about it you'd call it a canvas and you would know the answer.
Needs Regular Fix
 
Join Date: Feb 2007
Posts: 438
#7: Mar 4 '07

re: Creation a Point in a Graphic Display


Hi,

Thanks for the reply.

I have gone thru the document.Since Iam beginner for the Graphics development.I am looking for a simple exaple,where we can display the point data on the graphics window.If I have this example,I can add the canvas features to that Graphics windows.

Thanks in advance
PSB
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#8: Mar 4 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by psbasha

Hi,

Thanks for the reply.

I have gone thru the document.Since Iam beginner for the Graphics development.I am looking for a simple exaple,where we can display the point data on the graphics window.If I have this example,I can add the canvas features to that Graphics windows.

Thanks in advance
PSB

Look at it, it looks like a point could be made from a one pixel long line.
I found a better documentation link: http://www.pythonware.com/library/. You may want to check out Blender if you are planning on 3D graphics: http://www.blender.org/download/python-scripts/
bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#9: Mar 4 '07

re: Creation a Point in a Graphic Display


Quote:

Originally Posted by psbasha

Hi,

Thanks for the reply.

I have gone thru the document.Since Iam beginner for the Graphics development.I am looking for a simple exaple,where we can display the point data on the graphics window.If I have this example,I can add the canvas features to that Graphics windows.

Thanks in advance
PSB

Not sure if you have seen this example.
Needs Regular Fix
 
Join Date: Feb 2007
Posts: 438
#10: Mar 5 '07

re: Creation a Point in a Graphic Display


Hi,

Thanks for the reply.

I have seen this.Ok,No problem.I will customize my requirement by taking this example solution to procedd further.

-PSB
Reply