Re: Unified libraries to allow porting code to other oses

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu