~gandelman-a/ubuntu/oneiric/scsitools/mergeproposal

« back to all changes in this revision

Viewing changes to scsiinfo/tk/save-file

  • Committer: Adam Gandelman
  • Date: 2011-05-20 17:58:41 UTC
  • mfrom: (6.2.4 debian)
  • Revision ID: adam.gandelman@canonical.com-20110520175841-74orsktetfakacqd
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
set base [exec basename $sdevice]
24
24
 
25
25
.win.fname.text delete 1.0 end
26
 
.win.fname.text insert end "/var/run/scsi-config.$base"
 
26
.win.fname.text insert end "/tmp/scsi-config.$base"
27
27
 
28
28
frame .win.f
29
29
radiobutton .win.cur -text "Current values" -width 20 -variable flag -value "-LXR" -anchor w
36
36
        -activebackground red -activeforeground white
37
37
button .win.f.continue -width 10 -text "Save" \
38
38
        -activebackground green \
39
 
        -command {global fname; set fname [.win.fname.text get 1.0 "end -1 chars"]; destroy .win}
 
39
        -command {global fname; set fname [.win.fname.text get 1.0 end]; destroy .win}
40
40
pack .win.f.continue .win.f.quit -side left -padx 30 -ipadx 2 -ipady 2
41
41
pack .win.f -pady 10
42
42
pack .win