Re: Unified libraries to allow porting code to other oses
- Posted by jmduro Jun 06, 2015
- 2242 views
irv said...
Then you misunderstand. I have several Windows programs I wrote (years ago) using win32lib and Judith's IDE.
Similar programs using EuGTK tend to be about one-third as large, unless I also use Glade, in which case they can be even smaller.
You are surely right but EuGtk gives that impression. Let's take some of your code as an example (test135.ex):
constant panel = create(GtkBox,VERTICAL) add(win,panel) constant lbl1 = create(GtkLabel) add(panel,lbl1) set(lbl1,"markup",docs) constant img1 = create(GtkImage,icon) add(panel,img1) constant lbl2 = create(GtkLabel,icon) add(panel,lbl2) show_all(win) main()
I would have expected something more like that which seems to me close to Euphoria's style:
constant panel = create(GtkBox, win, VERTICAL) constant lbl1 = create(GtkLabel, panel) set(lbl1,"markup",docs) constant img1 = create(GtkImage, panel, icon) constant lbl2 = create(GtkLabel, panel, icon) main(win)
I guess this can't be done because it does not seem to be compatible with use of sizers (which usage I still don't understand).
Jean-Marc