The time now is Sat 25 May 2013, 16:36
All times are UTC - 4 |
|
Page 25 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 33, 34, 35 Next |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 28 Jun 2009, 21:22 Post subject:
|
|
| Lobster wrote: | I am trying to get genie to generate some sound.
Is this possible? Rather than play a wav I was wondering about generating a beep?
Not sure where to start? |
I have no speaker attached, so cannot test it.
Try:
| Code: | stdout.printf("\7")
stdout.flush() |
This should do the same as typing this in a console:
echo -en "\7"
According to google "beep linux shell", this is the code to generate a beep.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 28 Jun 2009, 21:30 Post subject:
|
|
For wav, yes, gstreamer, but it is not in Puppy by default.
You might use one of Puppys tools.
| Code: | [indent=4]
def exec(thecmd : string)
try
Process.spawn_command_line_async(thecmd)
except ex : GLib.Error
print("%s", "exec failed!")
init
exec("wavplay /usr/share/audio/2barks.wav")
//end
|
_________________ my recommended links
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sun 28 Jun 2009, 23:55 Post subject:
|
|
| Quote: | | You might use one of Puppys tools |
works!
many thanks guys
I am trying to put some building blocks together for a project, that I hope to begin this weekend.
(fear not - I will not be doing the coding
- have a real coder for that)
A simple Puppy game.
The next piece of code is to open a 'window'
and draw a circle in it.
Any clues? (remember I am clueless)
PS.
I am using the latest genie text editor compiled by Ttuuxxx to compile and build the code - very nice.
Is NicoEdit heading towards this option to
compile and build code?
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 29 Jun 2009, 09:35 Post subject:
|
|
for grafics, you might use the Cairo library.
It also is possible using Gtk/Gdk itself, for example the Gtkbasic Analogclock was written like that.
But for Genie/Vala, I actually just know one example, that is based on Cairo.
http://www.murga-linux.com/puppy/viewtopic.php?p=292901#292901
See the example from Mymas and my reply.
Circle: Instead of
ctx.show_text ('Hello, World')
you could look at the
http://valadoc.org/?pkg=cairo
http://valadoc.org/?pkg=cairo&element=Cairo.Context
http://valadoc.org/?pkg=cairo&element=Cairo.Context.arc
So something like
ctx.arc(100,100, ... )
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Mon 29 Jun 2009, 11:47 Post subject:
|
|
[See newer message]
Nicolas.
Last edited by nikobordx on Thu 02 Jul 2009, 13:38; edited 2 times in total
|
|
Back to top
|
|
 |
caleb72
Joined: 15 May 2009 Posts: 57
|
Posted: Tue 30 Jun 2009, 06:43 Post subject:
|
|
Is it challenging to compile Vala 0.7.4?
I notice that NicoEdit has that as a requirement but I'm yet to find a .deb distribution of it anywhere.
Regards
Caleb
|
|
Back to top
|
|
 |
Schism

Joined: 12 Dec 2008 Posts: 78
|
Posted: Tue 30 Jun 2009, 14:54 Post subject:
Upup |
|
I have vala0.7.1 on upup476. I love upup. Where do i get a pet of the newer Vala?
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 30 Jun 2009, 19:14 Post subject:
|
|
| nikobordx wrote: | Hi,
Version 2 beta 3 !
News:
Search in text is now fully working
Added "signal for search and gotoline, when you type text to search or line to go, just press enter ! "
Added "F11 shortcut for fullscreen/unfullscreen"
Added "Auto-indent, Indent-on-Tab, Indent-Width"
Added "When you click on change font, the font dialog remember the last selection"
Deleted the "big" search box !
Nicolas. | Cool.
Bugs:
Pressing Control-f does not work when in full-screen
Using undo when there is nothing to undo clears the file (or is this a feature?)
The line/column display in the statusbar doesn't update when the cursor is moved around, only when you type something
Suggestions:
Have the find box automatically jump back to the top when the bottom has been reached (maybe make this optional for the people who dislike it)
Add a keyboard shortcut for 'find-next' to be used when the cursor is not in the find-box (like F3 in Firefox or Control-g in Geany)
Close the find-bar if the user presses Esc while the cursor is inside it
Have Control-f put the cursor into the find-bar's box
Add a feature like "softtabs" in Vim, where if you use spaces for tabs and the cursor is at a tabstop, pressing backspace will delete the number of spaces that you use for tabs (assuming there are that many spaces behind it to delete - if there is text in the way, function normally instead). This would probably need to be optional.
Observation for those who don't know this:
When the cursor is inside the find-bar, it can be put back into the main area by pressing the up key
Those are just suggestions. Please don't feel obligated to implement them. I already have Vim and don't intend to use much else anytime soon. I just thought I'd mention some ideas.
_________________ Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 01 Jul 2009, 00:32 Post subject:
|
|
| Quote: | | for grafics, you might use the Cairo library. |
Will I have to go all that way and 'Walk like an Egyptian'?
http://www.youtube.com/watch?v=BWP-AsG5DRk
Thanks Mark. I'll get it
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Thu 02 Jul 2009, 13:29 Post subject:
|
|
[See newer message]
Nicolas.
Last edited by nikobordx on Mon 06 Jul 2009, 05:49; edited 2 times in total
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sat 04 Jul 2009, 08:50 Post subject:
|
|
[See newer message]
Nicolas.
Last edited by nikobordx on Mon 06 Jul 2009, 05:48; edited 1 time in total
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Sat 04 Jul 2009, 22:49 Post subject:
|
|
Hey nikobordx
I would like to test your editor
I opened the readme which states
Requires:
Vala-0.7.4
Gtk
Glib
Gtksourceview
Pango
Cairo
Gee
I dont want to mix and match versions #'s
could you list what versions of the above Requires
you are using so I start on the right foot
and if there were links already posted
could someone link me to what's needed
sorry to be coming in late
looking forward to testing
thanks for sharing your work
I like small and powerful apps
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sun 05 Jul 2009, 05:33 Post subject:
|
|
| big_bass wrote: | Hey nikobordx
I would like to test your editor
I opened the readme which states
Requires:
Vala-0.7.4
Gtk
Glib
Gtksourceview
Pango
Cairo
Gee
I dont want to mix and match versions #'s
could you list what versions of the above Requires
you are using so I start on the right foot
Joe |
Hi Joe,
I'm using:
Gtk 2.16.1
Glib 2.20.1
Gtksourceview2 2.6.2 (but i think a newer version is better for genie syntax hilighting)
Pango 1.24.0
Cairo 1.8.6
Nicolas.
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 05 Jul 2009, 10:06 Post subject:
|
|
Here is Vala 0.7.4, compiled in Puppy 4.12:
http://dotpups.de/puppy4/dotpups/Programming/Vala/vala-0.7.4-i486.pet
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Sun 05 Jul 2009, 17:34 Post subject:
|
|
Nicolas (nikobordx)
Thanks for clearing the dependencies
posting the correct versions that
you are using
that will save me a lot of time
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
|
|
Page 25 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 33, 34, 35 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|