Questions tagged [tcltk]

The tcltk package is an embedding of Tcl/Tk in R. Use tcl and tk tags for the actual Tcl and Tk software packages themselves.

74 questions
0
votes
0 answers

Calling command when R TclTk GUI is closed

I am working on a program that utilizes Tcl TK GUI interface in R. I would like to call some commands when the user presses the big red exit button in the GUI interface. Is the exit button hard coded by the programmer or is it innately a feature of…
hkj447
  • 677
  • 7
  • 21
0
votes
1 answer

How to give dynamic varying space between words in Tcl?

I'm new to tcl ,I like your help to give a dynamic variable spacing between words in Tcl. Example : "Stack over flow" " Stack" as 5 letter in it. So I have to give space of 5 to start next word same goes to next word. Output: Stack over flow
sixz
  • 35
  • 6
0
votes
1 answer

To find line index and word index by reading a text file

I have just started learning Tcl, can someone help me how to find line index and word index for a particular word by reading a text file using Tcl. Thank you
sixz
  • 35
  • 6
0
votes
1 answer

How to access and modify a sibling of a Tcl/Tk object in R

In short: I use tcltk package in R. But non-R users may suggest ideas too and provide examples in other language than R. I have a list of Tcl/Tk objects in R .1.1.1.1 .1.1.1.2 .1.1.1.3 and want to access and modify each object separately. How…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
0
votes
1 answer

Change Ruby TK menu entry state while a variable is changing too?

Let's assume i have this menu: menubar = TkMenu.new(win) win['menu'] = menubar edit = TkMenu.new(menubar) menubar.add :cascade, :menu => edit, :label => 'Edit' edit.add(:command, :label => 'Delete') And i want to change the "edit" entry state…
lucaortis
  • 430
  • 2
  • 11
0
votes
1 answer

How do I use the tk_optionMenu procedure?

I am trying to develop a GUI with TCL/Tk because that is the "macro language" of Pointwise, mesh generation software. I found a posting that discusses the use of a procedure called tk_optionMenu which is available here. The problem is that I do not…
Stephen Alter
  • 27
  • 1
  • 4
0
votes
1 answer

Getting list of windows in Tk and destroying specific ones (R)

I was wondering if it is possible to get a list of windows in Tk, and destroy specific ones. I am working in R using the tcltk interface, and am calling a function written by someone else a long time ago (that I cannot edit) which is producing…
user10060310
0
votes
1 answer

Objective-C garbage collection is no longer supported tkeclipse

When executing tkeclipse or tktools, I get the following message: /.../Eclipse/bin/x86_64_macosx/tkeclipse ; exit; objc[18335]: Objective-C garbage collection is no longer supported. /.../Eclipse/tcltk/x86_64_macosx/bin/wish8.5: line 2: 18335 Abort…
0
votes
1 answer

Trouble with failing to build _tkinter after installing binary tcltk

I am running linux and python 2.7.14 I have successfully installed the binary version of tcltk. I installed it into the same directory as python27 such that the following directories were all added in the same folders, namely: include, lib, etc. The…
Corey
  • 1
  • 1
0
votes
1 answer

Plotting ggplot2 and ggmap in tcltk window

I am looking for a way to create plots inside a tcltk window, i want the window to first read some files, then perform some functions on the data and then create plots (preferably in a new window which allows saving). I am new to tcltk but i want to…
Dror Bogin
  • 453
  • 4
  • 13
-1
votes
1 answer

wait until label gets displayed

so in my Tcl/Tk application I have a label with a text-variable: label .mylabel -textvariable statustext -relief sunken -anchor w and I can change the content of the label just fine by using something like set statustext "sponatenous…
umläute
  • 28,885
  • 9
  • 68
  • 122
-1
votes
1 answer

Tkinter Radiobutton: Image pixelated on OSX but works fine in Ubuntu

I've implemented a grid of Radiobuttons each having a unique image. I've included relevant lines of code below: photo[i] = ImageTk.PhotoImage(file=image_file) button[i] = Radiobutton(frame, variable=var, value=i+1, indicatoron=0, image=photo[i],…
Laschet Jain
  • 734
  • 1
  • 8
  • 24
-1
votes
1 answer

How to connect backend writtern in c++ with tcl/tck user interface?

I have seen a header file cpptcl.h . Is it legitimate? Also where can I find a good quick start example for the same. I am using tcl/tk to design user interface and want to call the scripts by forking in c++ code.
Muskan Agarwal
  • 378
  • 5
  • 19
-2
votes
1 answer

Tcl/Tk : Execute tcl script using tk button

Let say, there is a.tcl that contains infinite loop condition, e.g., while {1} { puts $val } I want to implement a tk-button, that executes a.tcl file and continues to run and print $val in tk-text window at regular interval of time say every…
1 2 3 4
5