On Thu, Feb 02, 2006 at 02:04:00PM +1100, Richard wrote: > Postgres is only a moderate challenge, because SQL is the same wherever you > do > it, I've just got to get myhead around functions/rules/tiggers etc, For the most part one can ignore rules for the time being. They do have their place but aren't immediately useful as often as triggers and functions.
> and it is > not the concepts around these, rather the syntax which trips me up. Ah, I see. > Python is somewhat different, not in its constructs such as the ifs, elses, > loops etc, but what I have huge difficulty getting my head around for some > reason is the classes contruct, What part of that confuses you ? > and when in use with wxPython, how the > 'parent', 'self', parameter stuff works. Parent is the one-level-up window which owns the current window (dialog, widget, etc). Self is a reference to "myself", that is, to the instance of the class at runtime. Think of it as the blueprint for a car and one of the cars built from it. In the blueprint (the class) there is a picture of a button and the instructions say: "If this button is pressed, light a fire." Now, this means that if the button is pressed in the actual car (self) then the fire should be lit in the *car* not in the blueprint. It seems obvious but the computer needs to be told explicitely. So, "self.something" sort of means "do something *later* in the actual thing". Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 _______________________________________________ Gnumed-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnumed-devel
