scripting toolkit for wxWidgets???

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mr-bigman
Earned a small fee
Earned a small fee
Posts: 19
Joined: Sat Nov 20, 2004 12:26 am

scripting toolkit for wxWidgets???

Post by mr-bigman »

Hello @all!

does anybody know a way to make a wxWidgets-application customizable with a script-language?? like the QSA scripting toolkit on Qt?

thx...
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

There is XRC for the window layout, and wxPython for a scripting language ;-)

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
mr-bigman
Earned a small fee
Earned a small fee
Posts: 19
Joined: Sat Nov 20, 2004 12:26 am

Post by mr-bigman »

Hi Jorg,

okay, but is it possible to integrate wxPython into a wxWidgets-application? and for example, to let the user manipulate an existing StaticText-object by a user-defined wxPython-script inside the application? something like this:

Code: Select all

...
var theStaticTextCtrl = app.GetObject("StaticTextCtrl");
theStaticTextCtrl.Text = "Hello @all!!";
...
i'm not really familiar with wxPython...but is something in that shown manner possible?

-regards
AkiraDev
Knows some wx things
Knows some wx things
Posts: 48
Joined: Tue May 24, 2005 9:13 am

Post by AkiraDev »

Hi!

I saw once a wxScript class that interprets scripts. Is this what you are looking for?

http://wxjs.sourceforge.net/wxScript.html

EDIT: I apologize for my confusion. This is related to wxJS (JavaScript port of wxWidgets). Anyway, it may prove useful, all things considered.
Back, just not as often

Windows Vista SP1, Ubuntu 8.04
MinGW 3.4.5, GCC 4.2.1
Code::Blocks
wxWidgets 2.8.9
mr-bigman
Earned a small fee
Earned a small fee
Posts: 19
Joined: Sat Nov 20, 2004 12:26 am

Post by mr-bigman »

Hi!

something like that...but i need the circumstance to control the application within the script...

thx..
travfar
Earned some good credits
Earned some good credits
Posts: 132
Joined: Mon Apr 04, 2005 12:54 am
Location: California
Contact:

Post by travfar »

I see said the blind man to the deaf girl who was mute.

Visit my project at: http://vwp.sourceforge.net

wx version:2.6.2 and 2.6.3 on linux
OS's:Windows XP, Gentoo is the best!!!!!!
compiler:Codeblocks(MingW32) and gcc on linux
jb_coder
Super wx Problem Solver
Super wx Problem Solver
Posts: 267
Joined: Mon Oct 18, 2004 10:55 am

Post by jb_coder »

To go with that download link, here's the wxScript documentation page: http://wxcode.sourceforge.net/component ... index.html
mr-bigman
Earned a small fee
Earned a small fee
Posts: 19
Joined: Sat Nov 20, 2004 12:26 am

Post by mr-bigman »

okay, all that i've seen on the page, is that it is possible to execute a script...but i need the circumstance that the user can write a script and for example manipulate the value of an wxTextCtrl - Object , or to calculate something with the values out of two wxTextCtrl-controls and write the result to another control or to add it to a list....
mandrav
Earned a small fee
Earned a small fee
Posts: 11
Joined: Wed Jan 05, 2005 7:43 am

Post by mandrav »

wxLua: just what you want ;)

Yiannis.
number4
Earned a small fee
Earned a small fee
Posts: 17
Joined: Wed Mar 09, 2005 6:12 pm

Post by number4 »

I didn't want to use scripting to create the application so I used swig to make the program have an internal interpreter.
mr-bigman
Earned a small fee
Earned a small fee
Posts: 19
Joined: Sat Nov 20, 2004 12:26 am

Post by mr-bigman »

@mandrav:
it seems like, that's what i was searching for...i'll take a look at it....
thx a lot!!!!!!!!!!!!!
Post Reply