View Single Post
Old 10-30-2009, 07:44 AM   #76
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by ericshliao View Post
One question:
How to operate with GTK, GDK...function in Lua script? I know that there is a dir "examples" in lgob and I can learn a lot by imitating the examples. But, where is the manual (not the officail GTK documentation)?
There isn't any.
Study those examples and take also a look at hansel's and my own's programs: multicalc, minipad, toolbox...[*]

I usually check pygtk docs and programs too and then translate to lua. Though is not directly translatable it should point you in the proper direction. Note that callbacks send arguments in a different way.

Iņigo
[*] Hansel lua code is quite polished and pretty, mine is ugly 'cos I don't know lua much.
Iņigo is offline   Reply With Quote