PDA

View Full Version : Scripting language recommendation?


WhatMeWorry
2006.11.10, 12:16 PM
I want to implement a simple GUI interface to my Xcode C++/OpenGL/SDL game.

Portability is very important to me. From what I've gathered after perusing on the
internet for many hours, is that Tk might be a good candidate. Even after extensive
reading, my mind is still unclear on many fundamentals:

Can Tcl/Tk be hooked into an Xcode C++/OpenGL/SDL project?

Or is Tcl/Tk an X11 windows only environment and so I'm screwed?

For that matter do any of the other scripting languages (python, Ruby) support a gui interface.

Skorche
2006.11.10, 02:01 PM
For that matter do any of the other scripting languages (python, Ruby) support a gui interface.

I don't know much about tcl, but If you ask me, tk is terrible. On OS X, it's pretty much only useful from X11 unless you install tcl/tk aqua and recompile your tk programs.

Python has strong ties with the wxWidgets library. It's fairly common to have wxPython apps on Linux, and I think wxPython is installed by default on newer versions of OSX. (Not sure how else I would have got it) It would have to be installed on Windows however. Other than this, I don't think that there is an easy crossplatform GUI solution that would work everywhere with a minimal amount of installation.

I also wouldn't recommend bringing in a scripting language just to inherit GUI functionality. That doesn't really be their strong point. I'm sure some might disagree though.

Duane
2006.11.10, 02:02 PM
Ruby comes with a Tcl/Tk library that's great and easy to use. The Pickaxe: http://www.rubycentral.com/book/ext_tk.html

[edit] Oh, ok. If you want a cross platform lib, I would recommend an embedded QT. If you want an example, look at Psi. Or you could make your own. [/edit[

WhatMeWorry
2006.11.10, 02:51 PM
If you want a cross platform lib, I would recommend an embedded QT. If you want an example, look at Psi

Sorry, but what is QT and Psi? I don't suppose QT is quick time?

Steven
2006.11.10, 03:51 PM
http://www.trolltech.com/

bronxbomber92
2006.11.10, 04:51 PM
Lua might be a good choice :)

Duane
2006.11.11, 01:09 PM
and Psi: http://psi-im.org/

No need to look at the source, I think, just the build script.