Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sh00der

    X Windows Failure

    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"...
  2. sh00der

    Dynamically update list

    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...
  3. sh00der

    Dynamically update list

    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...
  4. sh00der

    Dynamically update list

    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...
  5. sh00der

    help with grid geometry manager

    have you tried adding '-sticky news' option to your grid command?
  6. sh00der

    Help with Hard drive problems!?!?!??!

    Check your jumper settings for master/slave/etc., does the BIOS recognise the hard drive?
  7. sh00der

    probably a stupid question about checkbutton but...

    what about ... -command { if {[.chkbutton configure -foreground] == $color1} { .chkbutton configure -foreground $color2 } else { .chkbutton configure -foreground $color1 }
  8. sh00der

    Position Embedded Application

    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
  9. sh00der

    tk entry usage

    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
  10. sh00der

    Position Embedded Application

    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...
  11. sh00der

    How Do I Read My Windows Drive From Linux (F A Q)

    Although it's irrelevent in this case, Linux CAN read an NTFS drive but write access is not advised.
  12. sh00der

    Problem using winfo

    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...
  13. sh00der

    Position Embedded Application

    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...
  14. sh00der

    Position Embedded Application

    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...
  15. sh00der

    Problem using winfo

    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...
  16. sh00der

    Fedora 2 won't recognize Cisco Aironet 350 PCMCIA card

    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?
  17. sh00der

    Button Labels

    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...
  18. sh00der

    Display Resolution Question

    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.
  19. sh00der

    Replace list elements with new string

    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...
  20. sh00der

    How can I display symbols?

    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...

Part and Inventory Search

Back
Top