Discussion:
gui, tk, etc (was: [ANN] 2018 Call for Grant Proposals)
botp
2018-08-06 16:06:20 UTC
Permalink
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
2018-08-06 17:11:22 UTC
Permalink
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
Post by botp
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
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
--
--------------------------
Dr. Nicola Mingotti
R&D - Borghi Srl
CTO - BondInsider
--------------------------
botp
2018-08-07 04:30:23 UTC
Permalink
Post by Nicola Mingotti
botp, this is developer procedure !
indeed :)
Post by Nicola Mingotti
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.
Post by Nicola Mingotti
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%

:))
Post by Nicola Mingotti
IMO less than 10%.
ssshhh. all programmers are optimists :)
Post by Nicola Mingotti
bye
Nicola
many thanks and many regards,
--botp
Hidetoshi NAGAI
2018-08-07 09:39:57 UTC
Permalink
Hmm...

From: botp <***@gmail.com>
Subject: Re: gui, tk, etc (was: [ANN] 2018 Call for Grant Proposals)
Date: Tue, 7 Aug 2018 12:30:23 +0800
Post by botp
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 (***@ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology

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