Re: Tutorial
Arie van Wingerden <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CADkALSE-gSta085HDju2Mv9VkA+uHA9RqdkM0_n+G7jXUTuN+Q@mail.gmail.com> |
Hi Chris,
the example with the webbrowser does not work as designed in Windows.
When the URL is entered from Stdin it contains CRLF.
After doing this it works:
handle_url(String.trim_all_whites(url));
Best regards,
Arie
2016-12-08 15:01 GMT+01:00 Arie van Wingerden <[email protected]>:
> 2016-12-08 14:04 GMT+01:00 Chris Angelico <[email protected]>:
>
>> Oh... yeah, sorry about that. The GTK tutorial is way out of date.
>> It's been on my TODO list for ages, but that doesn't really help much.
>>
>
> I see ...
>
>
>
>>
>> Here's a GTK2 hello-world:
>>
>> int main()
>> {
>> GTK2.setup_gtk();
>> GTK2.MessageDialog(0, 0, GTK2.BUTTONS_OK, "Hello, world!")->show();
>> return -1;
>> }
>>
>>
> Nice! That works out of the box - so no need for extra GTK installs etc.
>
> So, I guess the API for GTK has changed and dropped the Alert function
> then?
>
> Check out my GitHub repositories for some cool stuff you can do with Pike.
>>
>> https://github.com/Rosuav
>>
>
> Will certainly check out.
>
> QUESTION: is Pike self-contained in the sense that all module
> functionality is included (so, no extra installs needed to function)?
>
> Reason is that Python is so difficult to deploy. If I can:
> 1. install Pike for somebody
> 2. hand them a Pike script
> and then the script runs right out of the box, that would be a huge
> improvement over the Python way, where you have to 'pip install' a lot of
> extra stuff in many cases ...!
>
> Thx for helping!
>
>
>
>
>