re: gui, tk, etc (was: [ANN] 2018 Call for Grant Proposals)


(botp) #1

installing and using tk in ruby, fwiw:

1 download latest tcl/tc fr activestate (
https://www.activestate.com/activetcl/downloads). by default it downloads
to /opt/
2 set lib location (wc is under /opt/ if you opted for the default) using
ldconfig

3 use tk in ruby using ffi-tk gem (https://github.com/manveru/ffi-tk)

4 try the examples included in ffi-tk. they should work.
hth

···

--

many thanks and kind regards,
--botp


(Nicola Mingotti) #2

botp, this is developer procedure !

imagine you wrote a Ruby programin with GUI (in Tk), now you only need to share
it with non-developers, non-tech-savy, normal computer users.

Which is the percentage of people do you estimate are able to install Tk,
configure Ruby for it and run your script ?

IMO less than 10%.

bye
Nicola

···

On 08/06/18 18:06, botp wrote:

installing and using tk in ruby, fwiw:

1 download latest tcl/tc fr activestate (https://www.activestate.com/activetcl/downloads). by default it downloads to /opt/
2 set lib location (wc is under /opt/ if you opted for the default) using ldconfig

3 use tk in ruby using ffi-tk gem (https://github.com/manveru/ffi-tk)

4 try the examples included in ffi-tk. they should work.
hth

--

many thanks and kind regards,
--botp

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------


(botp) #3

botp, this is developer procedure !

indeed :slight_smile:

imagine you wrote a Ruby programin with GUI (in Tk), now you only need to
share
it with non-developers, non-tech-savy, normal computer users.

when we share it we make sure that they have tk/tcl installed in their
client pc.
the rest may be handled by a simple script. or maybe, the script will
install tk itself if it senses absence; but then we may need admin
permission.
such pain indeed for fat clients.

Which is the percentage of people do you estimate are able to install Tk,
configure Ruby for it and run your script ?

dev: 100%
users: 0%

:))

IMO less than 10%.

ssshhh. all programmers are optimists :slight_smile:

bye
Nicola

many thanks and many regards,
--botp

···

On Tue, Aug 7, 2018 at 1:11 AM, Nicola Mingotti <nmingotti@gmail.com> wrote:


(Hidetoshi NAGAI) #4

Hmm...

···

From: botp <botpena@gmail.com>
Subject: Re: gui, tk, etc (was: [ANN] 2018 Call for Grant Proposals)
Date: Tue, 7 Aug 2018 12:30:23 +0800
Message-ID: <CAAwHHQiTSLB1+834om6ZuBuHnJyCbeyO+D4SKmkw2JrhR1AGzg@mail.gmail.com>

when we share it we make sure that they have tk/tcl installed in their
client pc.
the rest may be handled by a simple script. or maybe, the script will
install tk itself if it senses absence; but then we may need admin
permission.
such pain indeed for fat clients.

Is it the problem that is resolved if Ruby's tcltklib.so includes
all Tcl/Tk environment (works without other Tcl/Tk install)?
My experimental work, Ruby/Tk-Kit, may be able to create such a library.
It is a very old project, and now, freezed because it had few requiests.
At 2010, it worked on Linux and Windows. The sample binary exists at
< https://www.dumbo.ai.kyutech.ac.jp/~nagai/RubyTk/?Ruby%2FTk-Kit >.
You can embed an init script to the generated library.
So, at loading the binary, you can start your Ruby/Tk application
by the init script.

Now, the project is not developed. But if you want see the dirty codes,
you can get the files on the working directory at the following URL.
< https://www.dumbo.ai.kyutech.ac.jp/~nagai/RubyTk-Kit_20111224.tar.gz >

--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology