The whole treeclass was cleaned up, and is easier to use.
I think it now has reached the "final" structure, so the method names will not change in future.
I just might add some more, or enhance some. what might require more parameters.

here is a small interface for Mplayer.
The GIT version no longer supports an own grafical interface as far as I see.

So I hacked together this simple "playbar" , it allows to pause or switch fullscreen.
The cursor keys work too, to jump forward/backward.

In jwm, the playbar is covered in fullscreen mode, hit "f" to turn of fullscreen again.

The playbar has no fileselector, so you must pass a movie as commandline argument, or add the "genie-mplayer" script with full path as run-action to rox-filer (set the correct path in that script, too).

In the current state, it is not really recommended for average users, I just post it as small coding example.
Compiled in Puppy 412.

Yes. This thread and Barrys page is about all there is in Genie (it is very new)
Valide and Genie are part of the devx for the latest Woof alphas.

Marks examples (go through this thread) and my paltry efforts are a good place to begin.
Genie is faster (being compiled) than Python and works on both Windows and Linux, creating standalone efficient code.

Mark is very supportive and Barry will be providing more work in the future

Be a Pioneer Puppy_________________Puppy WIKILast edited by Lobster on Fri 15 May 2009, 22:04; edited 1 time in total

But once you wrote some small programs, using our examples as template, you will find a meanwhile quite huge collection of other examples: those from Vala.

A genie program has a simpler syntax.
So it is pretty easy, to "translate" vala code to genie.

This is especially valid for Gtk based examples.
Both languages use external libraries, and their call are almost identical.

Vala

Code:

if ( a == 10){
window.set_title("test");
}

Genie:

Code:

if a is 10
window.set_title("test")

So translating parts of code basically means to remove some "{ }" , some ";" and rename some keywords ("is" instead of "==").

I currently collect small examples, and will upload them in 3 weeks or so, after I cleaned them up.
It will be a collection of those posted in this thread, and maybe some simple others.
They can be browsed using a treeview, and you then can run them, or open them in the Vala-Ide.
But first I need to clean them, as especially my first Glade examples were too complicated, they can be simplified like the last ones.

I need help.
I have puppy 4.20 and devx_420.sfs installed.
I usually program in win c# and I would like to try vala in puppy. So I have download these packages from a deb repository:

valac_0.7.2-1_i386.deb
libvala0_0.7.2-1_i386.deb
vala-utils_0.3.4-1_i386.deb
libcairo2_1.4.14-1_i386.deb
.. because I wanted to try the last version with last fixed bugs.
.. converted to pet and installed

and gtksourceview-2.0.2-i486.pet from this thread

and valide-0.4-1-i686-svn-2009-03-27.pet from this site : http://dotpups.de/puppy4/dotpups/Programming/Vala/

Next step i compile by hand the hello.vala pgm example, and all gone well

so i tried to create a new project in valaide and I have got these errors:

1. when I try to create a new project :
valide_project_manager_copy_template: assertion `path != NULL' failed

2. so i create a project by hand copying from glade1.vide in this thread and than open the project and tried to compile. but I have got this error:

No, I can't use the gtksourceview 2.4.2 with valaide because if I do that (i tried ) I lost syntax Highlight ( almost in vala ). So I had to come back to previous version.

Thank you for the pcre libraries , I presume I have to replace the older one?

And what about the creation of a new project :assertion `path != NULL' failed
have you any suggestion?.

Also I notice that to work with vala / glade would be necessary the 3.6.x version because with this version you can save the xml UI in proper way for Gtk.Builder("xxxxx");
Have you any news about a new release or could I install it from deb packages ?.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum