Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 12:19 PM, Timo Paulssen wrote: But I suggest using qx for calling the zenity binary from your system. Actually, I though it would be good training. Sometimes doing things the hard way teaches you something. -- ~~ Computers are like air conditi

Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 12:19 PM, Timo Paulssen wrote: Surely you could already build a decent zenity-like in Perl 6 using GTK::Simple. But I suggest using qx for calling the zenity binary from your system. - Timo And examples too! :-) https://github.com/perl6/gtk-simple/tree/master/examples Thank

Re: zenity sub

2016-12-01 Thread Timo Paulssen
Surely you could already build a decent zenity-like in Perl 6 using GTK::Simple. But I suggest using qx for calling the zenity binary from your system. - Timo

Re: zenity sub

2016-12-01 Thread Brandon Allbery
On Thu, Dec 1, 2016 at 2:45 PM, Brandon Allbery wrote: > Largely because making it work in native perl 6 is not all that trivial; > that oh so "simple" popup has a full featured, mature widget toolkit and > graphics interface behind it, and uses, or at least makes available, quite > a few complex

Re: zenity sub

2016-12-01 Thread Brandon Allbery
On Thu, Dec 1, 2016 at 2:38 PM, ToddAndMargo wrote: > Quoting constructs as a perl 6replacement for zenity pop up windows? They're suggesting that, given an existing program specifically intended for providing pop-ups fo rother programs, why not use it? Largely because making it work in native

Re: zenity sub

2016-12-01 Thread ToddAndMargo
On 12/01/2016 05:22 AM, Timo Paulssen wrote: Zenity is already meant to be run by other programs (like shell scripts). Please see these documentation pages for info about how to invoke existing programs: https://docs.perl6.org/syntax/qqx https://docs.perl6.org/language/quoting#Shell_q

Re: zenity sub

2016-12-01 Thread ToddAndMargo
Richard On Thursday, December 01, 2016 08:00 PM, ToddAndMargo wrote: Hi All, In Perl 6 running on Linux, what would be the best way to get rid of the following system informational pop up (this from a bash script)? I other words, how do I do a window pop up in Perl6 for Linux? zenity --info

Re: zenity sub

2016-12-01 Thread Timo Paulssen
Zenity is already meant to be run by other programs (like shell scripts). Please see these documentation pages for info about how to invoke existing programs: https://docs.perl6.org/syntax/qqx https://docs.perl6.org/language/quoting#Shell_quoting_with_interpolation:_qqx Hope that helps!

Re: zenity sub

2016-12-01 Thread Richard Hainsworth
How about: $perl6 > my $c = prompt("can I have some\n"); say "you told me: $c"; can I have some indeed you are welcome you told me: indeed you are welcome > explanation: perl6 runs REPL to try something out prompt takes a string and prints it, waiting for a response, which it returns. say out

zenity sub

2016-12-01 Thread ToddAndMargo
Hi All, In Perl 6 running on Linux, what would be the best way to get rid of the following system informational pop up (this from a bash script)? I other words, how do I do a window pop up in Perl6 for Linux? zenity --info --title="$0 $ExtraTitle" --text "$InfoText" Many thanks, -T -- ~~~