 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I am currently learning to use the python script-language. I know that
there are a few toolkits available freely to create GUIs ( with windows,
buttons, drop-down windows,...) like wxpython, wpy. These toolkits can
be used with nearly the same look-like feeling on different platform.
This is a novice question : Is it possible to write a cross-platform
(Linux, windows, Mac) editor for POV using python and these tools ?
When I switch to Linux, I miss the usability of the windows version of
POV (Hotkeys, the help.chm, the syntax highlighting,....).
I know that there is a POV-mode version for Emacs, but like many
beginners under linux, it puts me off.
Nedit works fine but it needs some tweaking for the syntax highlights.
Going back to my question : it is feasible ?
Thanks
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Sat, 26 Jan 2002 13:06:03 +0100, Fabien HENON
<ffj### [at] club-internet fr> wrote:
>I know that there is a POV-mode version for Emacs, but like many
>beginners under linux, it puts me off.
There's also a Vim syntax file for POV, though I believe Vim will be
even more appalling to a beginner than Emacs.
>Nedit works fine but it needs some tweaking for the syntax highlights.
check out http://www.scintilla.org/, it's better than Nedit IMHO and
there's a Windows version as well as a GTK version which, I believe,
is not Linux-only (i.e. can be compiled on any Unix with GTK, maybe
even OS/X)
>Going back to my question : it is feasible ?
Sorry, I can't answer that. I know it would be good, though :)
Especially if, along with the Windows FUI features, you include the
ones from the wonderful Mac GUI, too.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vip bg
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3C5### [at] club-internet fr>,
Fabien HENON <ffj### [at] club-internet fr> wrote:
> This is a novice question : Is it possible to write a cross-platform
> (Linux, windows, Mac) editor for POV using python and these tools ?
I don't know about Python, but I think I remember seeing a Java text
editor that had POV-Ray syntax highlighting.
I don't know anything about Python, but I always thought it was more for
automating and scripting than for applications like a text editor.
Hmm...Jext looks like what I was thinking of.
http://www.povray.org/links/3D_Programs/POV-Ray_Unofficial_Patches_and_Fr
ont_End_Programs/POV-Ray_Front_End_Programs/
--
--
Christopher James Huff <chr### [at] mac com>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Peter Popov wrote:
> On Sat, 26 Jan 2002 13:06:03 +0100, Fabien HENON
> <ffj### [at] club-internet fr> wrote:
>
>
>>I know that there is a POV-mode version for Emacs, but like many
>>beginners under linux, it puts me off.
>>
>
> There's also a Vim syntax file for POV, though I believe Vim will be
> even more appalling to a beginner than Emacs.
>
>
>>Nedit works fine but it needs some tweaking for the syntax highlights.
>>
>
> check out http://www.scintilla.org/, it's better than Nedit IMHO and
> there's a Windows version as well as a GTK version which, I believe,
> is not Linux-only (i.e. can be compiled on any Unix with GTK, maybe
> even OS/X)
>
>
>>Going back to my question : it is feasible ?
>>
>
> Sorry, I can't answer that. I know it would be good, though :)
> Especially if, along with the Windows FUI features, you include the
> ones from the wonderful Mac GUI, too.
Which one do you mean ? I have never had the opportunity to see a mac
rendering with POV. Do you have any links or screenshots. I do agree
that it would be good to have the best of both worlds.
I kept on searching and apparently python with tcl/tk is easily ported
and meet the demands ..
>
>
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] vip bg
> TAG e-mail : pet### [at] tag povray org
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Christopher James Huff wrote:
> In article <3C5### [at] club-internet fr>,
> Fabien HENON <ffj### [at] club-internet fr> wrote:
>
>
>>This is a novice question : Is it possible to write a cross-platform
>>(Linux, windows, Mac) editor for POV using python and these tools ?
>>
>
> I don't know about Python, but I think I remember seeing a Java text
> editor that had POV-Ray syntax highlighting.
> I don't know anything about Python, but I always thought it was more for
> automating and scripting than for applications like a text editor.
>
> Hmm...Jext looks like what I was thinking of.
> http://www.povray.org/links/3D_Programs/POV-Ray_Unofficial_Patches_and_Fr
> ont_End_Programs/POV-Ray_Front_End_Programs/
>
>
I used Jedit on windows, not on Linux yet. It works fine, it even has
syntax highlighting. The point is that you have to install java on your
system, and on windows that installation program is something like 9 Mb.
Add 6 Mb for POV 3.5 on a 55.6 kbps modem...
The other thing is that it is rather sluggish to my taste.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3C5### [at] club-internet fr>,
Fabien HENON <ffj### [at] club-internet fr> wrote:
> Which one do you mean ? I have never had the opportunity to see a mac
> rendering with POV. Do you have any links or screenshots. I do agree
> that it would be good to have the best of both worlds.
There are some screenshots of the Smellenbergh unofficial GUI here:
http://users.skynet.be/smellenbergh/
The official version doesn't have the graphical editor features, but it
has a fairly nice code editor, message and preview windows, render
settings, etc.
--
--
Christopher James Huff <chr### [at] mac com>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3C5### [at] club-internet fr>,
Fabien HENON <ffj### [at] club-internet fr> wrote:
> I used Jedit on windows, not on Linux yet. It works fine, it even has
> syntax highlighting. The point is that you have to install java on your
> system, and on windows that installation program is something like 9 Mb.
> Add 6 Mb for POV 3.5 on a 55.6 kbps modem...
> The other thing is that it is rather sluggish to my taste.
Jext is pretty slow too...but I don't know that an editor written in
Python would be any better.
--
--
Christopher James Huff <chr### [at] mac com>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Sun, 27 Jan 2002 15:12:50 -0500, Christopher James Huff wrote:
>Jext is pretty slow too...but I don't know that an editor written in
>Python would be any better.
Having read all the previous posts in this thread it seems to have come
full circle so probaly best that I put my 2p worth in now.
Emacs looks complicated and will take some getting used to at first, with
setting up the .emacs file and so on, but it's well worth the effort,
"No pain, No gain".
I've just installed DJGPP (GCC for windows), on a Win95 machine and was
really amazed to find that the shareware editor that comes with it
actually has syntax highlighting.
So give emacs a go, and don't be affraid to ask for help, we've all been
there too.
--
%HAV-A-NICEDAY email mailto:ste### [at] zeropps uklinux net
Steve web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
11:30pm up 111 days, 15:19, 1 user, load average: 1.00, 1.00, 1.00
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I have started Xemacs. There was supposed to be something like .emacs or
.xemacs in which to put a line (for pov-mode.el) in ~home.
Either as root or a normal user I never managed to find that file. Where
else can it be.
Thanks for any help
Steve wrote:
> On Sun, 27 Jan 2002 15:12:50 -0500, Christopher James Huff wrote:
>
>
>>Jext is pretty slow too...but I don't know that an editor written in
>>Python would be any better.
>>
>
> Having read all the previous posts in this thread it seems to have come
> full circle so probaly best that I put my 2p worth in now.
>
> Emacs looks complicated and will take some getting used to at first, with
> setting up the .emacs file and so on, but it's well worth the effort,
> "No pain, No gain".
>
> I've just installed DJGPP (GCC for windows), on a Win95 machine and was
> really amazed to find that the shareware editor that comes with it
> actually has syntax highlighting.
>
> So give emacs a go, and don't be affraid to ask for help, we've all been
> there too.
>
> --
> %HAV-A-NICEDAY email mailto:ste### [at] zeropps uklinux net
> Steve web http://www.zeropps.uklinux.net/
> or http://start.at/zero-pps
> 11:30pm up 111 days, 15:19, 1 user, load average: 1.00, 1.00, 1.00
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Tue, 29 Jan 2002 21:13:57 +0100, Fabien HENON wrote:
>I have started Xemacs. There was supposed to be something like .emacs or
> .xemacs in which to put a line (for pov-mode.el) in ~home.
>
>
>Either as root or a normal user I never managed to find that file. Where
> else can it be.
>
>Thanks for any help
>
You can create the .emacs file in your home directory, just open up an
editor and put the appropriate text in there.
Below is a copy of the stuff I have in my .emacs:
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
(pc-selection-mode)
(setq scroll-step 1)
(setq next-line-add-newlines nil)
(setq visible-bell t)
(setq column-number-mode t)
(setq frame-title-format "%b")
;(custom-set-variables)
(show-paren-mode 1)
(setq make-backup-files nil)
;; put as much syntax highlighting into documents as possible
(setq font-lock-maximum-decoration t)
;; enable syntax-highlighting
(global-font-lock-mode 1 t)
;; Where did you install the POV-mode?
(setq load-path (cons "/usr/share/emacs/20.5/lisp/pov-mode.elc" load-path))
(autoload 'pov-mode "pov-mode.elc" "PoVray scene file mode" t)
(setq auto-mode-alist
(append '(("\\.pov$" . pov-mode)
("\\.inc$" . pov-mode)
) auto-mode-alist))
(custom-set-faces
'(region ((((class color) (background dark)) (:foreground "MidnightBlue" :background
"light
goldenrod")))))
(add-hook 'pov-mode-hook 'turn-on-font-lock)
;; Now add some useful keys.
;; Make F2 be `save-buffer'
(global-set-key [f2] 'save-buffer)
;; Make F3 be "Exit emacs".
(global-set-key [f3] 'kill-emacs)
;; Make F5 be "Goto line".
(global-set-key [f5] 'goto-line)
;; Make F8 refontify the buffer.
(global-set-key [f8] 'font-lock-fontify-buffer)
(setq indent-level 'nil)
(setq perl-mode-indent-level 'nil)
(setq comment-start-skip 'nil)
;;(show-paren-mode 1)
(custom-set-variables
'(cperl-indent-level 0)
'(cperl-min-label-indent 0)
'(cperl-close-paren-offset 0))
(put 'downcase-region 'disabled nil)
;;;;;;;;;;;;;;;; END OF .EMACS FILE ;;;;;;;;;;;;;;;;;;;;;;;
I've put some extra key bindings in that I find useful.
F2 is save current buffer, F3 is exit emacs without saving.
F5 promps for a line number, so type the line number and
press return and emacs goes to that line.
For working in Linux you may also find PovMenu useful it's a basic menu
system for running pov commands and handeling the output etc, you can
find it at my webpages here:
http://www.zeropps.uklinux.net/linstuff.html#POVMENU
Hope you find some of that helpful, and if something doesn't work or if
you are still having difficulties feel free to mail me.
--
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> There are some screenshots of the Smellenbergh unofficial GUI here:
> http://users.skynet.be/smellenbergh/
After 3.5 I wouldn't mind trying to port some of those cool modeller-type
stuff* to POVWin for the next MegaPOV
If a Mac developer could give some assistance I'm sure I could do it
reasonably well.
But I guess most people would just use the Moray stuff.
Bye,
Pabs
*BTW for those that don't know those features are:
Material, colour_map, slope_map & lathe/sor/bezier
graphical editor, MultiCopy template & Options dialog
(no more typing commandline paremters if you don't want to)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I don't know about everyone else, but I would certainly use it! I don't
use Moray (largely because even at two layers thick, my taskbar gets
real crowded real fast ;] buuut what can ya do?)
Pabs wrote:
>
> > There are some screenshots of the Smellenbergh unofficial GUI here:
> > http://users.skynet.be/smellenbergh/
> After 3.5 I wouldn't mind trying to port some of those cool modeller-type
> stuff* to POVWin for the next MegaPOV
> If a Mac developer could give some assistance I'm sure I could do it
> reasonably well.
> But I guess most people would just use the Moray stuff.
>
> Bye,
> Pabs
--
signature{
"Grey Knight" contact{ email "gre### [at] yahoo com" }
site_of_week{ url "http://digilander.iol.it/jrgpov" }
}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I agree with the one called Grey Knight! Please, do it! :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Pabs <pab### [at] NOzSiPpA Mto> wrote:
> > There are some screenshots of the Smellenbergh unofficial GUI here:
> > http://users.skynet.be/smellenbergh/
> After 3.5 I wouldn't mind trying to port some of those cool modeller-type
> stuff* to POVWin for the next MegaPOV
> If a Mac developer could give some assistance I'm sure I could do it
> reasonably well.
We, MacMegaPOV, will give assistance where and when needed within our
capabilities!
Smellenbergh
--
e-mail:sme### [at] skynet be
http://users.skynet.be/smellenbergh
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Fabien HENON wrote:
>
>
> I kept on searching and apparently python with tcl/tk is easily ported
> and meet the demands ..
I can't get tcl/tk to work on my Mac using Python 2.2 very well. It is
not fully supported on the Mac platform yet.
I use W widgets for my projects.
Josh English
eng### [at] spiritone com
http://www.spiritone.com/~english
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3c59070a@news.povray.org>, "Pabs" <pab### [at] NOzSiPpA Mto>
wrote:
> > There are some screenshots of the Smellenbergh unofficial GUI here:
> > http://users.skynet.be/smellenbergh/
> After 3.5 I wouldn't mind trying to port some of those cool modeller-type
> stuff* to POVWin for the next MegaPOV
> If a Mac developer could give some assistance I'm sure I could do it
> reasonably well.
> But I guess most people would just use the Moray stuff.
I wonder if a Java tool would be useful...performance wouldn't be a huge
priority. Or maybe even GLUT could be used.
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thanx for the enthusiasm all
& offer of help smellenberg
Looks like I'll do it after 3.5
It will likely be done in native Win32,
maybe with some OpenGL thrown in,
but probably not GLUT.
Bye,
Pabs
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |