Displaying 20 results from an estimated 60000 matches similar to: "read and write stdout() to tktext window"
2009 Oct 12
0
tktext-window smaller than text
Hi there,
I need to build up a tktext-widget that contains a longer text than
the tktext-widget actually is. So what I mean is, that the tktext
window is of width=100 and the text in it has a length greater 100.
But I don't want the window to just wrap the line, but to belong to
scrollbar that is able to scroll to the end of the text.
tt <- tktoplevel()
txt <- tktext(tt,
2009 Sep 14
1
summary of rpart-Object in tktext window?
Hi,
is it possible to put a summary of an rpart-Object into a tktext-window?
Here is what I'm trying to do:
fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis)
tt <- tktoplevel()
tex <- tktext(tt)
tkpack(tex)
tkinsert(tex, "end", summary(fit))
But since the summary of an object is a list, I always get back the
following error-message:
cannot handle object of
2008 Jun 05
2
Creating a list of functions
I've been trying to create a list of function where function[[i]] should actually return the value of i.
trying:
func <- vector("list",2)
i <- 1
while (i <= 2)
{
func[[i]] <- function()
{
i
}
i <- i+1
}
however only returned the last value of i for each function. Any help how to achieve the solution intended would be greatly appreciated.
thanks in advance,
andreas
2005 Sep 02
1
tcltk - automatically moving cursor to last line of tktext box - how?
Hi; I have a program which writes lines to a tktext box (of height, say, 10) with
tkinsert(txto, "end", paste(so,"\n"))
I would like my program to be such that it automatically scrolls down through the text box when it is full so that I always see the last 10 lines written. Can anyone help on this?
Best regards
S??ren
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
2011 Nov 01
0
Read/Write textbox in R
I am writing a GUI for my R script. It is a very basic form consisting of
textboxes and buttons.
I tried to run the following example to learn how to read value currently
entered into the textbox:
( it requires tcltk/tcltk2 packages )
# Create the widgets
base <- tktoplevel()
list <- tklistbox(base, width = 20, height = 5)
entry <- tkentry(base)
text <-
2008 Jun 17
0
setvalue of a combobox
if I wanted to set the value of a combobox
tt <- tktoplevel()
box <- tkwidget(tt,"ComboBox",values=c(1,2,3))
tkgrid(box)
tcl(box,"setvalue","first")
does anybody know how I would access an index other than the first? as second, and numbers do not work..
thanks in advance
Andreas Posch
2009 Jul 27
1
read binary file seek()
I want to read in a binary file using the readBin() function. In order to
skip uninformative parts of the file I use the seek() function, I need to
specify the number of bits to skip rather than the number of bytes to skip.
E.g. seek(to.read,origin="current",blockSize)
with blockSize giving the number of bits
Does anybody know if this works? Any help would be highly
2000 Mar 27
1
scp: write stdout: Broken pipe error (Tru64 UNIX)
I'm working on adding SIA authentication support to OpenSSH for use on
Tru64 UNIX. The authentication bits are working but there's more work to be
done including checking for locked accounts and setting resource limits.
Anyway, most things seem to be working fine except for scp and I'm looking
for a little help. Here's some output:
% scp -v lopan:sl.tar .
Executing: host lopan,
2002 Jan 28
1
Write failed flushing stdout buffer.
3 100% 0.00kB/s 0:00:00
wrote 30496 bytes read 327051 bytes 14593.76 bytes/sec
total size is 419896352 speedup is 1174.38
Write failed flushing stdout buffer.
write stdout: Broken pipe
time /usr/local/bin/rsync -avzP host: /bkup-zone --delete
this is the command which is being run, and I get the above error message
everytime. The phenomenon doesn't happen when just copying certain
2001 Jun 15
1
Patch for stdout/stderr buffer flush write() handling
The attached patch against today's CVS improves write() error handling and
logging in clientloop.c when flushing stdout/stderr.
--
Carson Gaspar - carson at taltos.org
Queen trapped in a butch body
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clientloop.c.diff
Type: application/octet-stream
Size: 966 bytes
Desc: not available
Url :
2003 Dec 16
1
[Bug 773] OpenSSH hangs or silently exits on write failure on stdout/stderr
http://bugzilla.mindrot.org/show_bug.cgi?id=773
Summary: OpenSSH hangs or silently exits on write failure on
stdout/stderr
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: openssh-bugs
2011 Sep 13
1
Heroku failed to push: fatal: sha1 file '<stdout>' write error: Invalid argument
When I try to push my app to Heroku I get this error:
OCA@OCA-PC /c/rails/oca (master)
$ git push heroku master
Enter passphrase for key ''/c/Users/OCA/.ssh/id_rsa'':
Counting objects: 913, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (797/797), done.
Read from remote host heroku.com: Connection reset by peer
fatal: sha1 file
2017 Feb 11
0
[Bug 1121] New: conntrack 1.4.4 ignores write errors to stdout
https://bugzilla.netfilter.org/show_bug.cgi?id=1121
Bug ID: 1121
Summary: conntrack 1.4.4 ignores write errors to stdout
Product: conntrack-tools
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: major
Priority: P5
Component: conntrack
Assignee:
2008 Jun 11
0
[Bug 773] OpenSSH silently exits on write failure on stdout/stderr
https://bugzilla.mindrot.org/show_bug.cgi?id=773
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Damien Miller <djm at
2011 Mar 15
2
Feature request: txtProgressBar with ability to write to arbitrary stream
Hi all,
I use txtProgressBar to monitor progress of large computations. What I
miss is the ability to redirect the progress bar to a stream other than
stdout, specifically to the message stream. This would be useful for
running Sweave scripts: When redirected to stderr, the bar could be
visible even though console output is diverted to the output file (and
there would be no cluttering of the
2004 Jun 25
2
Sweave: R code in self defined TeX-commands
Hi,
I need to produce a standard report for several variables in Sweave
and thus would need the possibility to define a TeX-command which includes
R-code like
\newcommand{\meansd}[1]{The mean is \Sexpr{mean(#1)} and the standard
deviation is \Sexpr{sd(#1)} .
}
and then just write
\meansd{age}
in the latex code to get the whole sentence.
The above does not work, since
2012 Sep 04
0
[PATCH] console: Close stdin, stdout, stderr on ldlinux.c32 unload
From: Matt Fleming <matt.fleming at intel.com>
The location of __file_info[] and ansicon_counter are split between
the core and ldlinux.c32. We can end up calling __ansicon_close (from
fp->oop->close) in the process of reloading ldlinux.c32, and while
ansicon_counter is set to its initialised data value of 0 when
reloading ldlinux.c32, the core is never reloaded, and so
__file_info[]
2008 Nov 03
1
possible tcltk event loop problem
Dear list members,
Rich Heiberger reported to me last week that the Messages window in the
Rcmdr GUI was freezing -- that is, messages posted to this window didn't
appear -- under Windows and R 2.8.0. I was able to confirm this problem on
three Windows systems, one using Vista and the other two XP. In each case, I
used R 2.8.0 and Rcmdr 1.4-4 (the current version). The problem doesn't
2010 Jul 21
1
tcltk resizing when using tkgrid for layout
I've been able to figure out on my own how to do what I need in the
largely undocumented tcltk package, but I've finally hit a wall. I can't
even think of any sufficiently specific search terms to use for this.
I'm trying to make the widgets in my tk window resize when the window is
resized by clicking and dragging on its corners or edges. Instead they
stay exactly where they