1. Phix/Gtk demo

https://i.imgur.com/D2qHgFam.png
https://openeuphoria.org/pastey/348.wc

Click above link to see the source code. I"m posting sample code to see if there is any interest or comments.

That will help me decide whether it's worth the effort to continue "wrapping" GTK for Phix.

So far, only 20 reads. Looks like I should just forget about it.

new topic     » topic index » view message » categorize

2. Re: Phix/Gtk demo

Compared to the sample IUP calls in https://openeuphoria.org/forum/m/134929.wc I'd say this is much more readable! And definitely a worthwhile project.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Phix/Gtk demo

An IUP version, not as pretty... (I did it on windows, so no pango support, etc.)
http://phix.x10.mx/GTK2IUP.png
https://openeuphoria.org/pastey/349.wc

irv said...

I"m posting sample code to see if there is any interest or comments.

That will help me decide whether it's worth the effort to continue "wrapping" GTK for Phix.

So far, only 20 reads. Looks like I should just forget about it.

Were you expecting 200? blink

I was hoping to add this to the Phix distro, one day.
I'm currently having a little bash at a mini-class-based wrapper for pGUI as well.

Re GTK vs IUP: It's a personal preference. IUP will never "beat" GTK on linux since it's piggy-backing on GTK anyway, and missing some bits (probably).
IUP (currently) has a win over GTK on windows in that it works out of the box with Phix, conversely setup on Linux is undoubtedly easier for GTK than IUP.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Phix/Gtk demo

I've written a quick and dirty class-based wrapper/drop-in replacement for pGUI.e

A terse version of the above demo : https://openeuphoria.org/pastey/351.wc

Or longhand, you take your pick : https://openeuphoria.org/pastey/352.wc

To run either of the above, you'll need : https://openeuphoria.org/pastey/350.wc

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu