- Timestamp:
- Apr 22, 2009 8:33:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/molvisviewer.tcl
r1417 r1421 28 28 } 29 29 30 set debug 130 set debug 0 31 31 proc debug { args } { 32 32 global debug … … 1531 1531 $_dispatcher dispatch $this !pngtimeout "set $var {} ; list" 1532 1532 1533 set popup [Rappture::Balloon .print -title "Generating file..."] 1534 set inner [$popup component inner] 1535 label $inner.title -text "Generating Hardcopy" -font "Arial 10 bold" 1536 label $inner.please -text "This may take a minute." -font "Arial 10" 1537 label $inner.icon -image [Rappture::icon bigroller0] 1538 button $inner.cancel -text "Cancel" -font "Arial 10 bold" \ 1539 -command [list set $var ""] 1533 set popup .molvisviewerprint 1534 if {![winfo exists $popup]} { 1535 Rappture::Balloon $popup -title "Generating file..." 1536 set inner [$popup component inner] 1537 label $inner.title -text "Generating hardcopy." -font "Arial 10 bold" 1538 label $inner.please -text "This may take a minute." -font "Arial 10" 1539 label $inner.icon -image [Rappture::icon bigroller0] 1540 button $inner.cancel -text "Cancel" -font "Arial 10 bold" \ 1541 -command [list set $var ""] 1542 blt::table $inner \ 1543 0,0 $inner.title -columnspan 2 \ 1544 1,0 $inner.please -anchor w \ 1545 1,1 $inner.icon -anchor e \ 1546 2,0 $inner.cancel -columnspan 2 1547 blt::table configure $inner r0 -pady 4 1548 blt::table configure $inner r2 -pady 4 1549 bind $inner.cancel <KeyPress-Return> [list $inner.cancel invoke] 1550 } else { 1551 set inner [$popup component inner] 1552 } 1553 1540 1554 $_dispatcher event -after 60000 !pngtimeout 1541 1555 WaitIcon start $inner.icon 1542 bind $inner.cancel <KeyPress-Return> [list $inner.cancel invoke]1543 1544 blt::table $inner \1545 0,0 $inner.title -columnspan 2 \1546 1,0 $inner.please -anchor w \1547 1,1 $inner.icon -anchor e \1548 2,0 $inner.cancel -columnspan 21549 blt::table configure $inner r0 -pady 41550 blt::table configure $inner r2 -pady 41551 1556 grab set -local $inner 1552 1557 focus $inner.cancel … … 1567 1572 grab release $inner 1568 1573 $popup deactivate 1569 destroy $popup1570 1574 update 1571 1575
Note: See TracChangeset
for help on using the changeset viewer.