1. EuGTK demo

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...
http://etcwebspace.com/users/irvm/worldflags.jpg
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.

new topic     » topic index » view message » categorize

2. Re: EuGTK demo

irv said...

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...
http://etcwebspace.com/users/irvm/worldflags.jpg
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

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

3. Re: EuGTK demo

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.

updated pkg here http://etcwebspace.com/users/irvm/screenshot2.jpg

Also: updated version of EuGTK now on sourceforge: EuGTK4.3.2.tar.gz

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

4. Re: EuGTK demo

Irv! This sounds like a really neat demo.

Do you know if that works with Windows?

(I know, I know! Windows is evil.) :P

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

5. Re: EuGTK demo

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.

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

6. Re: EuGTK demo

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.

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

7. Re: EuGTK demo

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.

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

8. Re: EuGTK demo

irv said...

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".

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

9. Re: EuGTK demo

Jerry_Story said...

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.

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

10. Re: EuGTK demo

Now it works. I changed line 86 in worldflags.ex in the demos to a comment.

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

11. Re: EuGTK demo

Jerry_Story said...

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu