You can either edit your /etc/X11/XF86Config manually and change the driver to the ati one for your card or if you're not comfortable with that run the command
XFree86 -configure
which will take you through the setup procedure.
I found this from a google search ...
Section "Monitor"...
I've cracked it! In case anyone's interested, here's how I did it,
set nos [list 1 2 3 4 5 6]
for {set c 0} {$c <= [llength $nos]} {incr c} {
set one [lindex $nos $c]
if {$one == 4} {lappend nos 7}
if {$one == 7} {puts "Works"}
}
I think this must make the substitution...
Bong, my actual application is a fairly complex GUI but I'm basically just doing data manipulation. I could just search through the modified list a second time but when there is a large amount of items this could add significant time to the procedure.
I can probably come up with a complicated...
Is there a way to update a list from within a foreach loop that is working on the list? Here's an example ...
set nos [list 1 2 3 4 5 6]
% foreach one $nos {
if {$one == 4} {
lappend nos 7
}
if {$one == 7} {puts "List...
Right, I've cracked it, thanks for your input Bong. I was getting an error because I needed to add an 'update' command before trying to embed the application in the frame I wanted to use.
Thanks again
You could use tkwait ...
pack [entry .e -textvar e -width 50]
tkwait variable e
tk_messageBox -message "$e" -type okcancel -icon question
this prevents the message box opening until the variable e is modified
Sorry, I messed up. I didn't spend enough time 'fiddling' with it. I tried gridding a frame under the canvas and adding the button and couldn't get that to work for some reason but if I use a canvas then it works fine.
Sorry if it's confusing, I tried to simplify things (LOL) by pulling this...
Bong posted this as a response to one of my questions, it occured to me that this might be what you want ...
The 'place' command (instead of pack or grid)
SYNOPSIS
place window option value ?option value ...?
place configure window ?option? ?value option value ...?
place forget window
place...
Here's an example of what I have done
toplevel .top1
canvas .top1.c1 -width 300 -height 300
grid .top1.c1
exec wish button.tcl -use [winfo id .top1] &
the button.tcl script looks like this ...
frame .f1
pack .f1
button .f1.exit -text "Exit" -command {exit}
pack .f1.exit
I think I'm probably...
Ayup, I have an application that presents some data in a toplevel window top1. I can embed another application (a tcl script) in the toplevel window but I can't position it where I would like. Ideally I wanted to create a frame in the toplevel and then position the frame but I can only get it...
How have you specified the outer .main frame? It's not listed in your code.
There is a typo as you have two padx options and I think your formula can be simplified to,
pack .main.inner -in .main -padx [expr [.main cget -width] - [winfo width .main.inner] / 2] -pady [expr [.main cget...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.