~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to visualization/nviz/scripts/script_get_line

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!nviz -f
2
 
# This file allows the user to input a line for output
3
 
# to a script.  We do this in a separate file so that
4
 
# the events processed here are not sent to the script
5
 
# file.
6
 
 
7
 
destroy .wait_ok
8
 
 
9
 
global src_boot
10
 
 
11
 
source $src_boot/etc/nviz2.2/scripts/config.tcl
12
 
 
13
 
# Create a simple label and entry widget
14
 
set done -1
15
 
label .l -text [G_msg "Add Script Line"]
16
 
entry .e -width 80 -relief sunken
17
 
frame .f
18
 
button .f.bok -text [G_msg "Ok"] -command {set done 1}
19
 
button .f.bcancel -text [G_msg "Cancel"] -command {set done 0}
20
 
pack .f.bok .f.bcancel -side left -fill both -expand yes
21
 
pack .l .e .f -fill x
22
 
tkwait variable done
23
 
 
24
 
if $done {
25
 
    puts "[.e get]"
26
 
} else {
27
 
    puts "-1"
28
 
}
29
 
 
30
 
exit
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
 
37