Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | change tk textarea widget to text as it should be |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
5c95dd93e2c349107f643cd5484437b4 |
| User & Date: | stever 2013-01-08 23:46:53.640 |
Context
|
2013-01-12
| ||
| 05:39 | Correct typo in README. check-in: 0009825949 user: gerald tags: trunk | |
|
2013-01-08
| ||
| 23:46 | change tk textarea widget to text as it should be check-in: 5c95dd93e2 user: stever tags: trunk | |
| 23:46 | allow server to be started as a shell script check-in: fc779c28cf user: stever tags: trunk | |
Changes
Changes to demo.tcl.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - + |
wtk::wm title . "Feet to Meters"
wtk::grid [wtk::frame .c -padding "3 3 12 12"] -column 0 -row 0 -sticky nwes
wtk::grid columnconfigure .c 0 -weight 1; wtk::grid rowconfigure .c 0 -weight 1
wtk::grid [wtk::button .c.calc -text "Calculate" -radius 7 -bg violet -fg lightgreen -command calculate] -column 0 -row 1 -sticky w
wtk::grid [wtk::entry .c.feet -width 7 -textvariable feet -bg GreenYellow -fg Red] -column 1 -row 1 -sticky we
wtk::grid [wtk::label .c.flbl -text "feet" -bg yellow] -column 2 -row 1 -sticky w
wtk::grid [wtk::label .c.islbl -text "is equivalent to"] -column 0 -row 2 -sticky e
wtk::grid [wtk::label .c.meters -textvariable meters] -column 1 -row 2 -sticky we
wtk::grid [wtk::label .c.mlbl -text "meters"] -column 2 -row 2 -sticky w
foreach w [wtk::winfo children .c] {wtk::grid configure $w -padx 50 -pady 50}; #not working yet
|
| ︙ |
Name change from widgets/textarea.tcl to widgets/text.tcl.
1 2 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + - + | # TextArea widgets |
Changes to widgets/wtk.js.
| ︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - + + |
wtk.sessionid = sessionid;
wtk.widgets['obj0'] = document.getElementById('obj0');
setTimeout(wtk.poller,100);
},
poller : function() {$.ajax({type:'GET', url:'wtkpoll.html?sessionid='+wtk.sessionid, dataType:'script',
complete: function() {setTimeout(wtk.poller,100);},
|
| ︙ | |||
45 46 47 48 49 50 51 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | - - + + |
comboboxClicked : function(id) { wtk.sendto('EVENT '+id+' value '+wtk.widgets[id].value); },
createLabel : function(id, txt) { wtk.CreateWidget(id, 'span', txt,'innerHTML'); },
createEntry : function(id, txt) { wtk.CreateWidget(id, 'input', txt,'value').onkeyup = function() {wtk.entryChanged(id);}; },
entryChanged : function(id) { wtk.sendto('EVENT '+id+' value '+wtk.widgets[id].value); },
|
| ︙ |