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...
I don't think you should have eth1 AND wifi0. I'm not certain about any of this but I would try deleting eth1 (you might then need to exit and restart the network config tool) and then use the network settings from FreeBSD to set up wifi0.
Are you getting any lights on the wireless card?
You could bind an event to .windowPath <Configure> which is generated when the window changes size. Apparently 'you should not reconfigure a widget's size while processing a <Configure> event to avoid an indefinite sequence of these events'.
Presumably you'd have to factor the font size based...
Rebooting will restart the X server, I think it will restart if you logout and then back in again.
Can you post your /etc/XF86Config file? That's probably a good place to start.
I would try ...
foreach item $files {
set tempList [split $item /] # replace item with new name
set flname [lindex $tempList end] # Set flname to filename at end
# make the substitution and output if necessary
if [regsub $old_name $flname $new_name newflname] {
set new_item...
I can't figure out how to display symbols in a text widget in the output of a tk/tcl script. I want to be able to display units of various properties that would include being able to display a degrees symbol and superscripts (for powers). Is it possible and how can I do it?
45 deg C and 50...
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.