Horst Herb wrote:

On Friday 06 October 2006 15:53, Richard Hosking wrote:
Still I always seemed to run into scope problems in getting objects to a
called widget and back again. Even with global variables/objects (which
I presume are generally frowned upon)

You don't pass objectes to widgets as a rule.
There is absolutely no need for global variables here either.
If you run into scoping conflicts, you are doing something very wrong.


I would think a few days spent in some sort of training would probably rapidly sort a lot of the difficulties. I have been picking away at this stuff for quite a while in between various other acivities. I was using Kate as an editor with a small script and makefile to compile and run each iteration - just doing a simple widget program to drive a radio synthesizer board. An object specifying various frequency parameters (eg sweep start/stop/step in floats) mode etc would be modified by a setup dialog. I could call the dialog from the main program event handler, and get data to it via a validator. However, couldnt for the life of me get modified data back.
I'll look at Ruby for the moment and go back to it later ...

Thanks anyway for your assistance

Richard
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to