1. EuGTK demo
- Posted by irv Dec 17, 2010
- 2171 views
A memory-testing game, after a 2 second preview, the randomly-chosen flags are hidden, and you must click on the penquins and find the matching flags
If you have a photographic memory, this won't be a challenge - for everone else however...

Get it here: worldflags.tar.gz - 720.9 kb, contains compiled executable & source,
Linux only (BSD or OSX perhaps?)
I've also sent it to RDS for their recent contributions page, it should show up there soon.
2. Re: EuGTK demo
- Posted by jeremy (admin) Dec 17, 2010
- 2079 views
A memory-testing game, after a 2 second preview, the randomly-chosen flags are hidden, and you must click on the penquins and find the matching flags
If you have a photographic memory, this won't be a challenge - for everone else however...

Get it here: worldflags.tar.gz - 720.9 kb, contains compiled executable & source,
Linux only (BSD or OSX perhaps?)
I've also sent it to RDS for their recent contributions page, it should show up there soon.
This is cool stuff. It would be nice to see announcements of what others are doing w/Euphoria as well.
Jeremy
3. Re: EuGTK demo
- Posted by irv Dec 18, 2010
- 1930 views
- Last edited Dec 19, 2010
I decided that wasn't educational enough, so I added a multiple-choice question each time a flag is correctly matched. Extra points are awarded for correctly identifying the country that flies that flag. Perfect score is 120 points.
Also: updated version of EuGTK now on sourceforge: EuGTK4.3.2.tar.gz
4. Re: EuGTK demo
- Posted by euphoric (admin) Dec 18, 2010
- 1849 views
Irv! This sounds like a really neat demo.
Do you know if that works with Windows?
(I know, I know! Windows is evil.) :P
5. Re: EuGTK demo
- Posted by irv Dec 19, 2010
- 1898 views
I have no way to test that.
The previous version of EuGTK was working on Windows, thanks to a lot of help from Mike Sabal and Ron Tarrant. So, theoretically, it should be possible to get the new version working there as well.
6. Re: EuGTK demo
- Posted by Jerry_Story Dec 20, 2010
- 1804 views
The executable file works. But ...
jstory@jstory:~/Downloads/euphoria-downloads/worldflags$ eui worldflags.ex
/home/jstory/Downloads/euphoria-downloads/worldflags/worldflags.ex:172
<0074>:: Errors resolving the following references:
GtkEngine.e (1466): replace_all
worldflags.ex (10): dir
worldflags.ex (10): D_NAME
worldflags.ex (10): vslice
worldflags.ex (22): add_item
worldflags.ex (27): shuffle
worldflags.ex (32): split
worldflags.ex (32): join
worldflags.ex (32): proper
worldflags.ex (142): add_item
worldflags.ex (145): shuffle
worldflags.ex (172): vslice
worldflags.ex (172): find_all
pair = find_all(this,vslice(btns,SNAME))
I installed the latest version of EuGTK and the latest version of Euphoria (Linux 32-bit Debian Package for 32-bit systems). Same result.
The usual EuGTK demos still work.
7. Re: EuGTK demo
- Posted by irv Dec 21, 2010
- 1760 views
Are you sure you have EuGTK version 4.3.2? Because replace_all was deprecated, and I took that call out of the GtkEngine
As for the other things, I don't have a clue. Or, maybe I do.
Those other routines come from Euphoria libraries, which are made public by GtkRoutines. I think I changed this some time ago.
8. Re: EuGTK demo
- Posted by Jerry_Story Dec 21, 2010
- 1732 views
Are you sure you have EuGTK version 4.3.2? Because replace_all was deprecated, and I took that call out of the GtkEngine
I downloaded and installed EuGTK 4.3.2 again just now from the http://etcwebspace.com/users/irvm/ website. The top of GtkEngine.e says "EuGTK 4.2.7" and a search shows "replace_all".
9. Re: EuGTK demo
- Posted by irv Dec 21, 2010
- 1725 views
I downloaded and installed EuGTK 4.3.2 again just now from the http://etcwebspace.com/users/irvm/ website. The top of GtkEngine.e says "EuGTK 4.2.7" and a search shows "replace_all".
I just did the same thing, and there's no "replace_all" anywhere in there.
However, why not just replace line 1616 with:
signame = find_replace('_',signame,'-')
AFAIK, that was the only time that "replace_all" was used.
Now, since you must for some reason have an older version, look at the top of GtkRoutines.e, and you should see:
public include std/dll.e public include std/filesys.e public include std/error.e public include std/machine.e public include std/sequence.e public include std/convert.e public include std/types.e public include std/text.e public include std/io.e public include std/search.e
If that's not there, you have an earlier version of GtkRoutines.
10. Re: EuGTK demo
- Posted by Jerry_Story Dec 21, 2010
- 1752 views
Now it works. I changed line 86 in worldflags.ex in the demos to a comment.
11. Re: EuGTK demo
- Posted by irv Dec 21, 2010
- 1706 views
Now it works. I changed line 86 in worldflags.ex in the demos to a comment.
You must have an earlier version of the worldflags package as well, because currently line 86 reads:
86 constant tbl = create(GtkTable,3,3,TRUE) 87 add(panel,tbl) 88 show(tbl)
Which, if commented out, would prevent the program from running at all.

