12-16-2018, 12:36 +0100
Search result (8)
All posts by: SIYB
AuthorPost
Topic: [TCL/TK] Simple font viewer   Forum: workscript announcements      Goto post
SIYB  03-02-2011, 23:11 Jabber  Homepage
Member since 06/2007
8 Posts
The most recent fontviewer version can always be found at:

http://www.git.mount.at/cgit.cgi/fontviewer/
Topic: [TCL/TK] Simple font viewer   Forum: workscript announcements      Goto post
SIYB  08-24-2010, 00:32 | [TCL/TK] Simple font viewer Jabber  Homepage
Member since 06/2007
8 Posts
Post:
http://geekosphere.org/1399/1399/

Screenshot:
http://geekosphere.org/wp-cont.../2010-08-23-231903_1680x...

Download:
http://siyb.mount.at/scripts/fontviewer0.2.tcl

File also attached to post. Please comment if you are satisfied.
This post was edited 2 times, last on 08-24-2010, 12:35 by SIYB
  The user has attached a file: fontviewer.tcl (Save, 4,187 Bytes, downloaded 117 times)
Topic: physioroom (request)   Forum: workJob Offers & Requests      Goto post
SIYB  07-15-2010, 01:46 Jabber  Homepage
Member since 06/2007
8 Posts
what's the pay?
Topic: RSS lib (A small call-it-a-lib script able to handle rss feeds)   Forum: workscript announcements      Goto post
SIYB  04-21-2009, 21:12 Jabber  Homepage
Member since 06/2007
8 Posts
Quote by CyBex on 04-16-2009, 01:24:
can you add a download file to the posting? the forum has problems with backslashes.. :-)

done :>
Topic: RSS lib (A small call-it-a-lib script able to handle rss feeds)   Forum: workscript announcements      Goto post
SIYB  04-16-2009, 00:09 | RSS lib Jabber  Homepage
Member since 06/2007
8 Posts
A small script that will help writing applications that need to parse RSS(2.0) feeds. The most important (from my point of view) features of RSS2.0 have been included, please feel free to enhance the script and share your results if you feel that they are useful.

There is a small demo at the end of the script, it should cover the usage, don't forget to free the mallocs :>. Any questions? -> email / irc / thread


                                                                                                                              
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# Copyright (c) 2009 siyb <siyb |insert "you know what here[/quote] geekosphere.org>
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use this software for any purpose,
# including commercial applications, and to alter it and redistribute it
# freely, subject to the following restrictions:
#
#    1. The origin of this software must not be misrepresented; you must not
#    claim that you wrote the original software. If you use this software
#    in a product, an acknowledgment in the product documentation would be
#    appreciated but is not required.
#
#    2. Altered source versions must be plainly marked as such, and must not be
#    misrepresented as being the original software.
#
#    3. This notice may not be removed or altered from any source
#    distribution.


package require tdom

namespace eval feedRead {
    variable idPrefix "feedread";# the prefix to be used for feeds
    variable formats [list rss]
    variable tmpId;# stores the id temporarily (when a feed is added -> upvaring)
    variable feedId 0;# the id counter
    variable feedList [list];# list containing all feedids and the corresponding data
    namespace eval handle {}
}

#
# Enduser relevant
#

# Creates a feed
proc feedRead::create {xmlData id} {
    upvar 1 $id rid
    # create domtree for the feed
    set doc [dom parse -keepEmpties $xmlData]
    set rid [feedRead::addFeed $doc];# add feed to feedlist and return the id
}

# return the feedlist of all feeds currently active
proc feedRead::getFeedList {} {
    return $feedRead::feedList
}

# clean up (destroy) all feeds
proc feedRead::destroyAll {} {
    foreach item [feedRead::feedList] {
        feedRead::destroy [lindex $item 0]
    }
}

#
# Lib
#

# deletes a feed from the list and gets rid of all traces
proc feedRead::destroy {id} {
    set doc [$id infoDoc];# get the document
    rename $id "";# delete the feed's procedure
    set search [feedRead::findFeed $id]
    set feedRead::feedList [lreplace $feedRead::feedList $search $search]
    $doc delete
}

# checks if a format is known to the script
proc feedRead::checkFormat {format} {
    return [lsearch $feedRead::formats $format]
}

# joins prefix and id
proc feedRead::joinId {id} {
    return [append foo $feedRead::idPrefix $id]
}

# Returns a feedread feedid
proc feedRead::mkid {} {
    set id [feedRead::joinId $feedRead::feedId]
    incr feedRead::feedId
    return $id
}

# find feed in list
proc feedRead::findFeed {id} {
    return [lsearch -index 0 $feedRead::feedList $id]
}

# replace feed in feedlist
proc feedRead::feedReplace {id replaceWith} {
    set search [feedRead::findFeed $id]
    set feedRead::feedList [lreplace $feedRead::feedList $search $search $replaceWith]
}

# find and return feed from list
proc feedRead::returnFeed {id} {
    return [lindex $feedRead::feedList [feedRead::findFeed $id]]
}

# determine the feed type
proc feedRead::determineType {rootNode} {
    return [$rootNode nodeName]
}

# count the number of <item> of a feed
proc feedRead::countItems {id} {
    return [llength [lindex [feedRead::returnFeed $id] end]]
}

# returns an <item> by its place in the itemlist of the feed
proc feedRead::returnItemById {id iid} {
    if {[feedRead::countItems $id] < $iid} {
        error "Itemid '$iid' out of range"
    }
    return [lindex [lindex [feedRead::returnFeed $id] end] $iid]
}

# adds a feed and the corresponding feed command
proc feedRead::addFeed {doc} {
    upvar #0 feedRead::tempId id
    set id [feedRead::mkid];# create a new id for this feed
    set root [$doc documentElement]
    set flist [list $id $doc $root [feedRead::determineType $root]]
    set feedRead::feedList [lappend feedRead::feedList $flist];# add feed to feedlist
    uplevel #0 {;# create the feed command
        proc $feedRead::tempId {option {iid -1}} {
            set id [string trim [dict get [info frame 0] proc] ::]
            set format [feedRead::getFeedType $id]

            if {[feedRead::checkFormat $format] != -1} {
                feedRead::handle::${format} $id $option $iid
            } else {
                error "'$format' not supported yet"
            }
        }
    }
    feedRead::feedReplace $id [lappend flist [feedRead::getChannelElement $id item -all]];# add all <item> to the feedlist
    return $id
}

# rss handler
proc feedRead::handle::rss {id option iid} {
    switch $option {
        "destroy"            { return [feedRead::destroy $id] }
        "infoType"            { return [feedRead::getFeedType $id] }
        "infoDoc"            { return [feedRead::getFeedDoc $id] }
        "infoRoot"            { return [feedRead::getFeedRoot $id] }
        "getChannelTitle"        { return [feedRead::getChannelElement $id title] }
        "getChannelLink"        { return [feedRead::getChannelElement $id link] }
        "getChannelDescription"        { return [feedRead::getChannelElement $id description] }
        "getChannelLanguage"        { return [feedRead::getChannelElement $id language] }
        "getChannelCopyright"        { return [feedRead::getChannelElement $id copyright] }
        "getChannelManagingEditor"    { return [feedRead::getChannelElement $id managingEditor] }
        "getChannelWebMaster"        { return [feedRead::getChannelElement $id webMaster] }
        "getChannelPubDate"        { return [feedRead::getChannelElement $id pubDate] }
        "getChannelLastBuildDate"    { return [feedRead::getChannelElement $id lastBuildDate] }
        "getChannelCategory"        { return [feedRead::getChannelElement $id category] }
        "getChannelGenerator"        { return [feedRead::getChannelElement $id generator] }
        "getChannelDocs"        { return [feedRead::getChannelElement $id docs] }
        "getChannelCloud"        { return [feedRead::getChannelElement $id cloud] }
        "getChannelTtl"            { return [feedRead::getChannelElement $id ttl] }
        "getChannelImage"        { return [feedRead::getChannelElement $id image] }
        "getChannelRating"        { return [feedRead::getChannelElement $id rating] }
        "getChannelTextInput"        { return [feedRead::getChannelElement $id textInput] }
        "getChannelSkipHours"        { return [feedRead::getChannelElement $id skipHours] }
        "getChannelSkipDays"        { return [feedRead::getChannelElement $id skipDays] }
        "getChannelItems"        { return [feedRead::getChannelElement $id item -all] }
        "getChannelItemLength"        { return [feedRead::countItems $id] }
        "getItemTitle"            { return [feedRead::getItemElement $id $iid title] }
        "getItemLink"            { return [feedRead::getItemElement $id $iid link] }
        "getItemDescription"        { return [feedRead::getItemElement $id $iid description] }
        "getItemAuthor"            { return [feedRead::getItemElement $id $iid author] }
        "getItemCategory"        { return [feedRead::getItemElement $id $iid category] }
        "getItemComments"        { return [feedRead::getItemElement $id $iid comments] }
        "getItemEnclosure"        { return [feedRead::getItemElement $id $iid enclosure] }
        "getItemGuid"            { return [feedRead::getItemElement $id $iid guid] }
        "getItemPubDate"        { return [feedRead::getItemElement $id $iid pubDate] }
        "getItemSource"            { return [feedRead::getItemElement $id $iid source] }
        default                { error "Unknown option ($option)" }
    }
}

#return the feed's type
proc feedRead::getFeedType {id} {
    return [lindex [split [feedRead::returnFeed $id]] 3]
}

# return the feed's document
proc feedRead::getFeedDoc {id} {
    return [lindex [split [feedRead::returnFeed $id]] 1]
}

# return the feed root
proc feedRead::getFeedRoot {id} {
    return [lindex [split [feedRead::returnFeed $id]] 2]
}

# get channel
proc feedRead::getChannel {id} {
    set root [feedRead::getFeedRoot $id]
    return [$root getElementsByTagName channel]
}

# get a channel element
proc feedRead::getChannelElement {id chanItem {option -single}} {
    set channel [feedRead::getChannel $id]
    set ci [$channel getElementsByTagName $chanItem]
    switch $option {
        "-single"     {
            foreach item $ci {;# loop all titles, if the parentNode of the title matches the channel, return it's text value
                if {[$item parentNode] == $channel} { return [$item asText] }
            }
        }
        "-all"     {
            return $ci
        }
        default    { error "bad option \"$option\": must be -all or -single" }
    }
}

# get an <item> element
proc feedRead::getItemElement {id iid itemElement} {
    set item [[feedRead::returnItemById $id $iid] getElementsByTagName $itemElement]
    if {$item == ""} { return "" }
    if {[llength $item] > 1} {;# of there is more than one element by that name
        set rlist [list]
        foreach i $item {
            set rlist [lappend rlist [$i asText]]
        }
        return $rlist
    } else {
        return [$item asText]
    }
}

#
# documentation demonstration
#
proc feedRead::demo {feed} {

    package require http

    set token [::http::geturl $feed -timeout 2000]
    set data [::http::data $token]
    ::http::cleanup $token

    # lets create the feed first, $data is the feed's data
    feedRead::create $data id
    puts "Feedlist: [feedRead::getFeedList]";# print feedlist

    # some information on the feed
    puts "\nfeed information:\n"
    puts "    [$id infoType]";# the type of the doc
    puts "    [$id infoDoc]";# the document identifier
    puts "    [$id infoRoot]";# the root node identifier of the doc

    # channel related information -> [$id getChannelTitle] for instance
    set l {
        "getChannelTitle"
        "getChannelLink"
        "getChannelDescription"
        "getChannelLanguage"
        "getChannelCopyright"
        "getChannelManagingEditor"
        "getChannelWebMaster"
        "getChannelPubDate"
        "getChannelLastBuildDate"
        "getChannelCategory"
        "getChannelGenerator"
        "getChannelDocs"
        "getChannelCloud"
        "getChannelTtl"
        "getChannelImage"
        "getChannelRating"
        "getChannelTextInput"
        "getChannelSkipHours"
        "getChannelSkipDays"
        "getChannelItems"
        "getChannelItemLength"
    }
    puts "\nChannel related information:\n"
    foreach item $l {
        puts "    $item: '[$id $item]'"
    }

    # item related stuff
    puts "\nitem related stuff:\n"
    set l {
        "getChannelItemLength"
        "getItemTitle"
        "getItemLink"
        "getItemDescription"
        "getItemAuthor"
        "getItemCategory"
        "getItemComments"
        "getItemGuid"
        "getItemPubDate"
        "getItemSource"
    }
    foreach item $l {
        puts "    $item: '[$id $item 0]'"
    }

    # now that we are done we need to destroy all data related to the feed in order to prevent memory from going apeshit
    $id destroy
}

This post was edited 1 times, last on 04-21-2009, 21:10 by SIYB
  The user has attached a file: feedRead.tcl (Save, 9,831 Bytes, downloaded 134 times)
Topic: [TK] Copy highlighted text to clipboard   Forum: #tclsmalltalk      Goto post
SIYB  12-09-2007, 14:23 | [TK] Copy highlighted text to clipboard Jabber  Homepage
Member since 06/2007
8 Posts
It took me some time to figure out how to get highlighted text from a text widget, I figured that this code might save some time. This program draws a text widget (in which you are able to write in) and a menu that will be spawned by using mouse3 (Button-3).
--> Highlight some typed text, "rightclick", copy and paste.

                                                                                                                              
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
# copy highlighted text
proc copyhl {} {
    set start [lindex [split [.textbox tag ranges sel]] 0]
    set stop [lindex [split [.textbox tag ranges sel]] 1]
    if {$start == "" || $stop == ""} { return };# check if there is something to copy

    clipboard clear
    clipboard append [.textbox get $start $stop]
}

pack [text .textbox]

# small menu featuring copy&paste functionality
menu .menu1 -tearoff 0
.menu1 add command -label "Copy" -command {
    copyhl
}
.menu1 add command -label "Paste" -command {
    .textbox insert end [clipboard get]
}
bind .textbox <Button-3> { tk_popup .menu1 %X %Y }

Topic: tIRC (IRC client written in TCL/TK)   Forum: workJob Offers & Requests      Goto post
SIYB  08-28-2007, 05:05 | tIRC Jabber  Homepage
Member since 06/2007
8 Posts
I am looking for people, which are willing to help me finish programming tIRC, a TCL/TK based IRC client, that will be released under the terms of the GPL2.

Since tIRC is an OpenSource project, there will be no payment for contributers, but I am able to provide other meeds and goodies (we have resources left on our servers). I am not looking for elite TCL programmers, I am really happy to get some people with the enthusiasm to learn and extend their knowledge, as long as you have basic knowledge of TCL don't hesitate to reply to my post, if you are interested in participating.

I started tIRC in order to gain some experience in TK GUI programming, so the code might seem a bit amateurish, don't flame and/or complain.

Project overview:

- tIRC is aimed to be platform independent
- Written in TCL/TK (what else Oo)
- Information storage (userdata, servers etc): XML
- IRC "API" almost complete, but still pretty buggy :(
- The GUI needs some modifications as well (currently not all eventualities are handled as they should be!)
- The plugin API needs to be extended in a way that allows easy creation and maintenance (have some ideas and thoughts on this already)
- General modification and code maintenance required.

Would be nice if you had some experience with the following:

- XML
- TCL/TK
- The IRC protocol
- usability
- git (similar to CVS / SVN)
- Linux
- commenting your sourcecode
- the English language

I am programming on Linux so it would be nice if a Windows user is willing to participate. If you are short of time please don't even bother to reply.

The last thing I'd to mention is the url to tIRC's git repository in case you want to take a look at the current snapshot -->

http://git.geekosphere.org/?p=tirc/.git;a=summary
Topic: [TCL/TK] - gif-2-base64 / base64-2-gif   Forum: #tclcode snippets      Goto post
SIYB  08-02-2007, 22:18 | [TCL/TK] - gif-2-base64 / base64-2-gif Jabber  Homepage
Member since 06/2007
8 Posts
A TCL/TK program to convert gif images to base64 and reverse base64 to gif.

                                                                                                                              
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#!/usr/bin/wish

#=======================================================
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#=======================================================
#
# DEPENDENCIES
#
#    - TCL8.4
#    - TK8.4
#    - TCLLIB
#
# VERSION HISTORY
#
#    1.0
#        - Basic gui
#
#    1.1
#        - Added scrollbar
#        - Added clear button
#        - Added initial file in save function
#
#    1.2
#        - Added help button
#        - Added preview button
#        - Moved buttons to the left
#        - Added routine to decode base64 back to gif
#
#    1.3
#        - Added load base64 file button
#        - Added quit button
#        - Fixed issue with multible help and preview windows
#        - Altered design
#        - Removed ::out
#
#        Known issues: Program might crash if the user attempts to load a non text file as base64 file!
#        Please report bugs if you encounter any. (suggestions are welcome as well :>)
#
#=======================================================
#
# Contact: SIYB (siyb@geekosphere.org) - http://geekosphere.org - irc://siyb.de/woot
#
#=======================================================
package require base64

#
# This proc was written by Jeff Godfrey and taken from http://wiki.tcl.tk/2897
#
proc gif2base64:encode {file} {
    if {$file == ""} { return }
    set fileID [open $file RDONLY]
    fconfigure $fileID -translation binary
    set rawData [read $fileID]
    close $fileID
    set encodedData [base64::encode $rawData]
    return $encodedData
}

#
# decode base64 to gif
#
proc gif2base64:decode {data ofile} {
    if {$ofile == ""} { return }
    set fl [open $ofile a+]; fconfigure $fl -translation binary;puts $fl [base64::decode $data];close $fl
}

#
# info popup
#
proc gif2base64:info {window info} {
    if {[tk_messageBox -title "INFO!" \
            -parent $window \
            -type ok \
            -icon info \
            -message "INFO: $info"] == "ok"} {
        return
    }
}

#
# gui
#
set helptext {
    Information: The gif2base64 program is capable of converting gif images to base64 and reversing base64 back to gif, in order to recover images from sourcecode.

    gif to base64:
    Press the "Gif to base64 convertion" button and choose a gif file you wish to convert into base64. You can now take a look at what your image would look like in an
    application, by pressing the "Preview image" button. If you are happy with the results, you may save the generated base64 code to a file by pressing the "Save result to file"
    button.

    base64 to gif:
    Paste the base64 string into the program's textbox or load a base64 file by using the "load base64 file" button and press the "Base64 to gif convertion" button, after that a
    save as box should appear, the gif file will be written as soon as you choose a file to save the picture to.

    Author: SIYB (siyb@geekosphere.org) - teh geekosphere (http://geekosphere.org) 2007

    This program can be distributed under the terms of the GPL v2
}

proc gif2base64:gui {} {
    global helptext
    wm title . "gif2base64"
    wm resizable . 0 0

    set ::types {
        {{GIF Files} {.gif}}
        {{GIF Files} {} GIFF}
    }

    pack [frame .f1] -fill x -expand 1 -side left -anchor n

    #
    # GIF
    #
    pack [labelframe .f1.lf1 -text "GIF"] -expand 1 -fill x

    pack [button .f1.lf1.b1 -text "Gif to base64 convertion" \
        -command { set ::file [tk_getOpenFile -filetypes $::types -parent .]; .f2.t1 delete 0.0 end; .f2.t1 insert end [gif2base64:encode $::file]}
    ] -fill x -expand 1

    pack [button .f1.lf1.b2 -text "Save result to file" \
        -command {
        if {[string trim [gif2base64:encode $::file]] == ""} { gif2base64:info . "There is no data to be saved yet"; return }
        set fl [tk_getSaveFile -initialfile [lindex [split [file tail $::file] .] 0].out]; if {$fl == ""} { return }; set fl [open $fl a+]; puts $fl [gif2base64:encode $::file]; close $fl
    }
    ] -fill x -expand 1

    #
    # BASE 64
    #
    pack [labelframe .f1.lf2 -text "BASE64"] -expand 1 -fill x

    pack [button .f1.lf2.b3 -text "Load base64 file" \
        -command {
        set file [tk_getOpenFile]
        if {$file == ""} { return }
        set fl [open $file r]; set data [read $fl]; close $fl;
        .f2.t1 delete 0.0 end; set ::out $data
        .f2.t1 insert end $data
    }
    ] -expand 1 -fill x

    pack [button .f1.lf2.b4 -text "Base64 to gif convertion" \
        -command {
        set fl [tk_getSaveFile -filetypes $::types]
        if {$fl == ""} { return }
        gif2base64:decode [.f2.t1 get 0.0 end] $fl
    }
    ] -expand 1 -fill x

    #
    # MISC
    #
    pack [labelframe .f1.lf3 -text "MISC"] -expand 1 -fill x

    pack [button .f1.lf3.b5 -text "Clear" \
        -command { set ::out ""; .f2.t1 delete 0.0 end }
    ] -expand 1 -fill x

    pack [button .f1.lf3.b6 -text "Preview image" \
        -command {
        if {[string trim [.f2.t1 get 0.0 end]] == "" || [winfo exists .preview]} { return }
        toplevel .preview
        wm resizable .preview 0 0
        if {[catch {set img [image create photo -data [.f2.t1 get 0.0 end]]}]} { destroy .preview; gif2base64:info . "Image can't be previewed, this might be due to broken base64 data."; return }
        pack [label .preview.img -image $img]
    }
    ] -expand 1 -fill x

    pack [button .f1.lf3.b7 -text "Help" \
        -command {
        if {[winfo exists .help]} { return }
        toplevel .help
        wm title .help "gif2base64 Help"
        wm resizable .help 0 0
        pack [label .help.l1 -justify left \
            -text $helptext
        ]
        pack [button .help.b1 -text "Close help" \
            -command {
            destroy .help
        }
        ]
    }
    ] -expand 1 -fill x

    pack [button .f1.lf3.b8 -text "Quit" \
        -command { exit }
    ] -expand 1 -fill x

    pack [frame .f2]
    pack [scrollbar .f2.s1 -command {.f2.t1 yview}] -side right -expand 1 -fill y
    pack [text .f2.t1 -yscrollcommand ".f2.s1 set" -background white] -side left -expand 1

    pack [label .l1 -text "Use ctrl+c to copy the content from the textbox."]
}

gif2base64:gui

  The user has attached a file: screen.gif (Save, 441,984 Bytes, downloaded 171 times)
Go to forum
Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 210.3 msec, CPU time: 90.3 msec, 58 Database queries in 144.7 msec | 16.6 kB (114.9 kB) | Timezone: +0100