Displaying 20 results from an estimated 100 matches similar to: "tcltk - tkcreate question"
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi,
I am having trouble debugging this one. The code is attached below, but
it seems to be a problem at the
C-tk interface. If I run this 1 time there are no problems if I run it
more than once I start to get warnings
that increase in multiples of 11 everytime I run it. Here is a sample
session
> source("clrramp2.r")
Loading required package: tcltk
Loading Tcl/Tk interface ... done
2008 Feb 08
0
[PATCH] Make outputDeviceForGeometry behave smarter when dealing with overlapping outputs. Currently, the current output is returned if some part of the rectangle is on it; otherwise the output device the rectangle center is on is returned. This works
This makes scenarios like laptops with external monitors on Xrandr 1.2 work. Those e.g. have a 1280x800 output and a 1280x1024 output, completely overlapping each other. With this patch, outputDeviceForGeometry will return the smaller head for a rectangle that's completely inside the smaller head and the larger head otherwise.
---
src/screen.c | 88
2001 Feb 22
2
Problem with tcltk listbox
Hi!
I've got two problems with listboxes and selection:
I created a listbox, no problem. Then I bind the Button-1 of the mouse to the listbox to start some things by pressing the mousebutton. The proiblem is that as I click a item of the listbox this error occured:
Error in .Tcl(.Tcl.args(...)) : [tcl] bad listbox index "": must be active, anchor, end, @x,y, or a number.
Repaeting
2005 Jul 31
3
Drawing a graph with vertices and edges using tcl/tk
Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck.
- Does anyone know of the existence of such a document or any other web-based material on the subject?
- Does anyone have an (informative) piece of
2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
I would like to use R.oo and tcltk to implement a Turtle World. I have
encountered
many problems because:
1) I am not sure how to implement static fields with R.oo
2) I am not sure how to implement a constructor that would
call a function only for the first instance of a class (i.e., to
initialize
value of static fields only once)
3) I am not sure how to remove/delete cleanly existing
2008 Oct 30
3
using yscrollcommand in tkcanvas crashes R (PR#13231)
Full_Name: Sundar Dorai-Raj
Version: 2.8.0
OS: Windows
Submission from: (NULL) (76.220.41.126)
The following code crashes R:
library(tcltk)
tt <- tktoplevel()
tc <- tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...))
> sessionInfo()
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
2008 Dec 22
1
newbie question on tcltk
Hi List,
Can anyone tell me how could i put the "BACK" button in the following code, just under the "AAA" menu? I want this button to go back to the previous page, and since it has nothing to do with the "1" and "2" buttons, i want it somehow separated from these two buttons, but i don't know how. I searched the web for some examples but my results
2007 May 24
1
GUI component Margin on tkcanvas, tkframe or tktoplevel
Dear gurus:
I have a question on how to configure the margin layout on tcl/tk GUI
objects like tkcanvas, tkframe or tktoplevel.
For example, if I want to leave a larger margin on the left side of the
GUI container, which one should I configure, the toplevel or tkcanvas or
tkframe?
top<-tktoplevel()
canvas<-tkcanvas(top, relief=, borderwidth=...)
I also find the documentation for all
2004 Apr 05
1
NAMESPACE directives ?
Hello,
I've built the package distr (see link below) successfully with R 1.8.1
and R 1.9.0 beta (under Linux).
As to make the package compatible to R 1.8.1 / 1.9.0, I have to use two
different NAMESPACE files.
For 1.8.1 it has to contain
import("methods")
import("stepfun")
and for 1.9.0 the "import"-part has to be
import("methods")
2012 Jul 16
2
Tk grid problem
Hi everybody,
I have a problem with the grid function in tk.
I juste try to put 4 buttons like this:
-------------------
| | |
| | C |
| A |--------|
| | |
---------- D |
| | |
| B | |
-------------------
A is 2x2
C is 1x2
B is 1x2
D is 2x2
but the code bellow dont work :
require(tcltk)
tt <-
2004 Mar 10
2
R CMD check errors
Hello,
I'm getting some error messages from R CMD check I can't deal with.
I'm working under Linux with R 1.8.1
The package working directory can be found at:
http://www.uni-bayreuth.de/departments/math/org/mathe7/DISTR/distr.tar.gz
Here's the 00check.log produced by R CMD check distr
* using log directory '/home/tom/studium/R/swp/swp/package/distr.Rcheck'
* checking
2010 Aug 24
1
save() object w/o all of the loaded environment
I have two packages, one that does the actual work (SC) and the other
a Tcl/Tk UI (SCUI) that invokes methods within the former. Within the
SCUI's invocation method, I save an object returned from SC, the
results of a long-running method.
Now the object is completely described by the SC package. Unfortunately,
any attempt to load the object (in a fresh R session) fails as below.
R>
2009 Aug 24
1
Copy & Paste from tktext on Mac
Hi there,
a text Window is supposed to map the shortcuts for copying and pasting
(<Ctrl-C>, <Ctrl-V>) automatically.
I'm working under Mac OS X and my text window doesn't really map these
functions automatically - it works fine under Windows. Is there an
easy way to map copy&paste functions to a text window under Mac OS X?
This is what I'm doing with my text
2003 Oct 15
0
tkcanvas/bitmap for Turtle World
To represent a turtle inside a canvas (tcltk package), I have a serie of
bitmaps
representing the turtle heading in different directions and I would like
to display the one that corresponds to the current direction of the turtle
(function below).
I have created with Paint a bitmap representing the turtle in BMP format
and succeeded displaying it on canvas after converting it into XBM format
2002 Feb 15
1
embed image in R-tcltk canvas
Hi,
I think that R-tcltk doesn't have the capacity to display an image stored in
memory on a tkcanvas object, am I right?
I have digged around everything I can find from Peter Dalgaard and tcltk
references and drew my conclusion.
Can you, Peter, or some other gurus on the list, give us a pointer or two on
how to proceed to solve this problem? I am afraid that it may involve
writing C
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
Sorry, for my mail from last night contains no subject.
Therefore, I send it again and two tcltk questions are appended.
----------------------------------------------------------------------------
Prasad wrote:
> I wrote a function in R which uses tcltk package .... essentially I wanted
> to give within that function, a widget with 2 radiobuttons to choose
> between plotting Precip
2010 Apr 05
3
syntax error, unexpected '\n', expecting tASSOC
Hey all,
I get the following error. Now I know it''s related to a curly brace, but
it seems that all curly braces are properly in place. So I''m not sure
why I get this error:
SyntaxError in DashboardController#panels
rails/app/controllers/dashboard_controller.rb:170: syntax error,
unexpected ''\n'', expecting tASSOC
def panels
addDetailToContainer =
2013 Sep 01
1
[PATCH] remove a duplicate tk function definition (and alphabetize)
'tkcoords' is defined twice (in the same way) in src/library/tcltk/R/Tk.R.
Attached is a patch against r63780 that removes the duplicate
definition and alphabetizes the functions.
I've read that minor patches such as this should be sent to r-devel [1].
Scott
[1] http://permalink.gmane.org/gmane.comp.lang.r.devel/33987
--
Scott Kostyshak
Economics PhD Candidate
Princeton
2012 Aug 07
0
Trying to build up a user interface with the R tcltk package
I'm trying to build up a user inteface using the R tcltk component. Since the
documentation for this R library is scarce and poor, I have decided to use
only the .Tcl function to pass commands to the tcl interpreter. So I wrote
my
first very simple tcltk program, hoping to run it from inside R and get the
nice Tk window, with the following R instruction:
-> .Tcl('source
2003 Nov 19
2
Was: setValidity and "initialize" method conflict ? [in R-help]
Hello,
Thomas Stabla (statho3@web.de) has already sent this
question to R-help, Wed, 12 Nov 2003 21:21:31 +0100,
but we are not sure whether we should better post this
mail to this audience than to R-help:
---------------------------------------------------------------------
We are using S4-classes and want to force a validity check
when an object is created.
How can this be done, when an