Re: gtk widget?

2019-04-22 Thread Timo Paulssen
Please check out Marcel Timmermann's GTK::Glade module. Here's the readme:

https://github.com/MARTIMM/gtk-glade

Sadly, modules.perl6.org is currently not available, however, you can
download the distribution here:

https://www.cpan.org/authors/id/M/MA/MARTIMM/Perl6/gtk-glade-0.8.3.tar.gz

or you can git clone the repository and "zef install ." from inside it.

There's a little pdf file in the docs/ folder about using the module itself.

In order to build a glade file to use with this library, you can install
the program "glade". This allows you to graphically put a GUI together.

https://glade.gnome.org/


Good Luck!
  - Timo


On 22/04/2019 05:44, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> I see
>
> https://github.com/perl6/gtk-simple/tree/master/examples
>
> but I have no clue what is going on.
>
> Is there some kind of gtk widget that you can graphically
> design these windows with?
>
> Many thanks,
> -T
>


Re: Why so slow?

2019-04-22 Thread ToddAndMargo via perl6-users




On 22/04/2019 12:51, ToddAndMargo via perl6-users wrote:

On 22/04/2019 03:32, ToddAndMargo via perl6-users wrote:

Hi All,

One liners are fast, but my own programs are very slow to start.

I download

https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6

To check it out and it also takes ten second to start.

What gives?

Many thanks,
-T


On 4/22/19 3:35 AM, Timo Paulssen wrote:

It's quite possible that when you start that program, you're first
waiting for GTK::Simple to be precompiled; the "use lib 'lib'" can
interfere with the storage of precompilation results. If you have
installed GTK::Simple (for example by going to its folder and running
"zef install .") and removed the line "use lib 'lib';", it might start a
lot faster when you run it the second time.

Hope that helps!
    - Timo





Not seeing a `use lib`.  :'(

use v6;
use lib 'lib';
use GTK::Simple;
use GTK::Simple::App;


On 4/22/19 4:02 AM, Timo Paulssen wrote:> It's the second line:
>
> use v6;
> use lib 'lib';  # ← this line right here
> use GTK::Simple;
> use GTK::Simple::App;
>
>-Timo
>

Made no difference.  :'(


Re: Why so slow?

2019-04-22 Thread Timo Paulssen
It's the second line:

use v6;
use lib 'lib';  # ← this line right here
use GTK::Simple;
use GTK::Simple::App;

  -Timo

On 22/04/2019 12:51, ToddAndMargo via perl6-users wrote:
>>> On 22/04/2019 03:32, ToddAndMargo via perl6-users wrote:
 Hi All,

 One liners are fast, but my own programs are very slow to start.

 I download

 https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6

 To check it out and it also takes ten second to start.

 What gives?

 Many thanks,
 -T
>
> On 4/22/19 3:35 AM, Timo Paulssen wrote:
>> It's quite possible that when you start that program, you're first
>> waiting for GTK::Simple to be precompiled; the "use lib 'lib'" can
>> interfere with the storage of precompilation results. If you have
>> installed GTK::Simple (for example by going to its folder and running
>> "zef install .") and removed the line "use lib 'lib';", it might start a
>> lot faster when you run it the second time.
>>
>> Hope that helps!
>>    - Timo
>>
>
>
>
> Not seeing a `use lib`.  :'(
>
> use v6;
> use lib 'lib';
> use GTK::Simple;
> use GTK::Simple::App;


Re: Why so slow?

2019-04-22 Thread ToddAndMargo via perl6-users

On 22/04/2019 03:32, ToddAndMargo via perl6-users wrote:

Hi All,

One liners are fast, but my own programs are very slow to start.

I download

https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6

To check it out and it also takes ten second to start.

What gives?

Many thanks,
-T


On 4/22/19 3:35 AM, Timo Paulssen wrote:

It's quite possible that when you start that program, you're first
waiting for GTK::Simple to be precompiled; the "use lib 'lib'" can
interfere with the storage of precompilation results. If you have
installed GTK::Simple (for example by going to its folder and running
"zef install .") and removed the line "use lib 'lib';", it might start a
lot faster when you run it the second time.

Hope that helps!
   - Timo





Not seeing a `use lib`.  :'(

use v6;
use lib 'lib';
use GTK::Simple;
use GTK::Simple::App;


Re: Why so slow?

2019-04-22 Thread Timo Paulssen
It's quite possible that when you start that program, you're first
waiting for GTK::Simple to be precompiled; the "use lib 'lib'" can
interfere with the storage of precompilation results. If you have
installed GTK::Simple (for example by going to its folder and running
"zef install .") and removed the line "use lib 'lib';", it might start a
lot faster when you run it the second time.

Hope that helps!
  - Timo

On 22/04/2019 03:32, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> One liners are fast, but my own programs are very slow to start.
>
> I download
>
> https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6
>
> To check it out and it also takes ten second to start.
>
> What gives?
>
> Many thanks,
> -T