Tk Library Source Code

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2026-11-18
00:07
Merge trunk leaf check-in: aabb6f3007 user: kjnash tags: textForSvg
2026-11-16
14:54
Fix [a033bd45cb]: xyplot was slow for large data sets, because it drew every segment as a separate canvas item, which were then scaled and moved on each rescale. Draw each series with a single plotlist call; 10000 points now give 75 items instead of one per point. Add xyplot.test. leaf check-in: a6fd0c5e25 user: serhiy.storchaka tags: xyplot-plotlist
14:51
Fix [009b09029f]: axis labels could show rounding noise, e.g. 2.77555756156e-16 instead of 0 on reversed axes, and the radial labels of polar plots were not formatted. The check that snaps a label to zero tested the tick position instead of the label value in DrawYaxis, DrawRightaxis, DrawXaxis and DrawXtext; DrawPolarAxes used the radius unformatted. Add tests Plotchart-6.6 and Plotchart-6.7. leaf check-in: 8b55a62086 user: serhiy.storchaka tags: plotchart-zero-labels
14:48
Fix [2683544fff]: the x axis title overlapped the tick labels when the bottom axis had a larger font. DrawXtext placed the title using the height of the default font cached at load time and ignored the tick offset, and MarginsRectangle reserved space the same way. Use the line space of the bottom axis font and the tick offset for both. Add test Plotchart-6.5. leaf check-in: 04f35d45a4 user: serhiy.storchaka tags: plotchart-xtitle-axis-font
14:45
Fix [ee430592d9]: bars were drawn outside the plot area if the value axis did not start at zero. Vertical and horizontal bars were drawn from the base (0) to the value regardless of the axis range; clip both ends of each bar to the axis range. Stacked bars and bars on an axis containing zero are unchanged. Add test Plotchart-6.4. leaf check-in: db0ae6d7aa user: serhiy.storchaka tags: plotchart-bars-clip-axis
14:43
Fix [6812273b4d]: bindplot did not react when the pointer was over data or lines. The binding was on an invisible rectangle lowered below all items. Bind the event on the canvas instead, and call the command only when the pointer is inside the plot area; a later bindplot for the same event replaces the command. Item bindings such as bindlast and legend dragging keep working. <Enter> and <Leave> now refer to the canvas, not to the plot area. Add test Plotchart-6.3. leaf check-in: 23b03be440 user: serhiy.storchaka tags: plotchart-bindplot-over-data
14:33
Fix [4c28633e3a]: yconfig failed on log-Y plots whose y axis was given without a step. AxisConfig passes -ylabels to the axis drawing procedure, but DrawLogYaxis did not accept further arguments, unlike DrawLogXaxis. Add test Plotchart-6.2. leaf check-in: 334a9672cd user: serhiy.storchaka tags: plotchart-logy-yconfig-labels
14:33
Fix [38d95aee72]: xconfig failed on X-logY plots with invalid command name "XConfigXlogY". The method table named XConfigXlogY, but the procedure is XConfigXLogY. Add test Plotchart-6.1. leaf check-in: 56dd41c20d user: serhiy.storchaka tags: plotchart-xlogy-xconfig
14:27
Fix [d74509223b]: widget::listentry and widget::listsimple could not be loaded without the Img extension (can't find package img::png). They need it only to read their PNG icons with Tk 8.5; Tk 8.6 and later read PNG images natively. Require img::png only with Tk 8.5, and bump both packages to 0.1.3. The suggested package require png is not a fix: tcllib's png package does not read images. Add widgetl.test. leaf check-in: 2558b26b6f user: serhiy.storchaka tags: widgetl-png-without-img
00:02
Fix [fa6fbae045]: widget::dateentry did not set its -textvariable, so reading an array element given as -textvariable failed, and an existing value was ignored. The variable now shows the date it holds if it is valid, and is set to the current date otherwise, also when -textvariable is configured later. Like for the standard widgets, the variable is global. Add dateentry.test. leaf check-in: 329ac63aae user: serhiy.storchaka tags: dateentry-textvariable
00:02
Fix [6da48f4579]: autoscroll assumed that a packed scrollbar is managed in its parent. With pack -in another container it saved and restored the wrong pack order. Use the container from pack info. Add autoscroll.test. leaf check-in: ad0d5c7779 user: serhiy.storchaka tags: autoscroll-pack-in
00:01
Fix [2962077fff]: ipentry and ipentry6 failed with an array element as -textvariable. The trace procedures used the name and key passed by the trace, which are relative to the frame that accesses the variable; use the name the widget was configured with. Add ipentry.test. leaf check-in: f1d6e65970 user: serhiy.storchaka tags: ipentry-array-textvariable
00:01
Fix [4c5222924f]: ipentry failed after it was destroyed and created again with the same -textvariable. Destroying it removed the first trace of the variable, whichever it was, and could leave its own. Remove exactly the trace of the widget. Add ipentry.test. leaf check-in: 38862c9602 user: serhiy.storchaka tags: ipentry-remove-traces
00:01
Follow-up to [db81761a73] for [79747a0cb5]: when a notification replaced one which was still shown, the pending fade_in and fade_out events of the old window still ran, and faded out and destroyed the new window early. Cancel them. Add notifywindow.test. leaf check-in: e6328aa17c user: serhiy.storchaka tags: notifywindow-cancel-timers
2026-11-15
23:54
Fix [7ddeff4e86]: controlwidget::thermometer: setting the value with the set method or through -variable failed with 'unknown subcommand "lineTo"'. The method is called needleTo. Add controlwidget.test. leaf check-in: 14bd904c7d user: serhiy.storchaka tags: thermometer-set-value
23:54
Fix [1c877f89a4]: controlwidget: voltmeter failed with Tk 9 with its default size ("50m"), meter with its default size ("2i"), and thermometer with a size given as a screen distance. Tk 9 returns the canvas -width and -height as given rather than in pixels; convert them with winfo pixels. Add controlwidget.test. leaf check-in: 4efab58a98 user: serhiy.storchaka tags: controlwidget-tk9-screen-distances
23:33
Fix [3470437fff]: wrong padding of the AND mask rows in ico. Each row of the mask is padded to a multiple of 32 bits, but ico padded it with (width % 32) bits, both when writing and when reading, so icons with widths like 8, 20 or 40 had a wrong transparency. Fixed in ico 1.x and ico 0.x. Add ico.test. leaf check-in: d227043609 user: serhiy.storchaka tags: ico-andmask-padding
23:32
Fix [e7f1ed859e]: ico read 256x256 icons as size 0. In the icon directory a width or height of 0 means 256. getIconMembersICODATA also read sizes from 128 to 255 as negative numbers. Add ico.test. leaf check-in: 7425d4463d user: serhiy.storchaka tags: ico-256-icons
23:32
Fix [b845a924db]: the tachometer needle angle was computed with integer division when -min, -max and the value are integers. Also, with Tk 9 the tachometer failed with its default size, because canvas cget -width returns the screen distance as given ("50m"); convert it to pixels. Add controlwidget.test. leaf check-in: 415c80d49d user: serhiy.storchaka tags: tachometer-needle-angle
23:31
Fix [7ae7ab1e83]: controlwidget::rdial failed with the default -width (can't read "sfact"). The scale factor was only computed when -width was given; compute it in the constructor too. Add controlwidget.test. leaf check-in: bb38f4cff1 user: serhiy.storchaka tags: rdial-default-width
23:24
ctext: let the text widget keep the modified flag. ctext is in the bindtags of its text widget, so the <<Modified>> the text widget sends also reached bindings on the ctext, in addition to the one ctext sent itself. Now only the text widget sends it, once each time the flag changes, and "edit modified" goes to the text widget. ctext no longer sets the flag after inserts and deletes; the text widget does it when the text changes. The tests now let queued events be delivered. See [3567463fff]. leaf check-in: adab3e651c user: serhiy.storchaka tags: ctext-modified-event
23:08
Fix [1167772fff]: ctext removed the user's tags around every insert and delete. Only the tags of the highlight classes are removed now. Since edits no longer remove the tags of deleted classes, deleteHighlightClass and clearHighlightClasses delete them. Add ctext.test. leaf check-in: d2c98b5d41 user: serhiy.storchaka tags: ctext-keep-user-tags
23:07
Fix [3567463fff]: ctext sent <<Modified>> on every change, and not at all for "edit modified". Like the text widget, <<Modified>> is now sent only when the modified flag changes, also when it is set with "edit modified". Add ctext.test. check-in: 8b53c6beb2 user: serhiy.storchaka tags: ctext-modified-event
23:07
Fix [e9c4eeae1f] and [ffcd8611b8]: line north goes down in diagrams. Since math::geometry 1.4 (tcllib check-in 1f54de21e6) [direction] and [octant] use the mathematical orientation of the y axis, while the canvas y axis points down. diagrams now uses its own versions of both, with the behaviour of math::geometry before 1.4. Add diagrams.test. leaf check-in: aea758e6eb user: serhiy.storchaka tags: diagrams-screen-directions
2026-10-04
11:09
Fix [4cecf79bc5]: Openstreetmap tiles must be fetched using https. leaf check-in: 731a23f35e user: sbron tags: trunk
08:40
integrated canvas edit work check-in: aa518c7977 user: aku tags: trunk
08:39
[canvas::track::lines] fix: comment typo [canvas::track::circle] feat: new package, track circle around mouse position [canvas::edit::polyline] `-data-cmd` API extended and changed. bumped to 0.3. INCOMPATIBLE to 0.2. [canvas::edit::points] feat: reworked bind handling, two additional operation modes. bumped to 0.4 [canvas::edit::points] chore: updated demo app to show the new modes off closed check-in: cffbbd8db6 user: aku tags: ak-canvas-edit-work
08:28
crosshair - extended internal documentation. no functional changes check-in: f8a638bfbc user: aku tags: trunk
2026-10-01
19:06
tweak: use -(hilit-)color for outline as well, instead of fixed black check-in: 3360808663 user: aku tags: ak-canvas-edit-work
10:18
Released Tablelist 7.12 and Scrollutil 2.11. check-in: a137c3da4c user: csaba tags: trunk
2026-09-30
20:53
Rewrite all tcl.tk references to tcl-lang.org check-in: ecfd17f19e user: aku tags: trunk
02:06
In textForSvg demo script examples/textForSvg/svg-demo.tcl, adjust macOS font sizes for editable text widget in left panel; set auto_path to detect modules/textForSvg/; minor changes elsewhere. check-in: 632eddd580 user: kjnash tags: textForSvg
2026-09-28
17:57
Scrollutil: Updated for version 2.11. See the ChangeLog for details. check-in: e6d35a8a02 user: csaba tags: trunk
2026-09-17
16:52
Tablelist: Improvements in the bundled wsb package, related to the Windows platform. check-in: f96681404c user: csaba tags: trunk
2026-09-10
19:21
Fix for bug [79747a0cb518] leaf check-in: db81761a73 user: emiliano tags: bug-79747a0cb518
2026-09-02
14:40
Tablelist: Updated the tklib adress. check-in: 6b020948e4 user: csaba tags: trunk
10:49
Tablelist: Updated for version 7.12. See the ChangeLog for details. check-in: 01fd3f8d0b user: csaba tags: trunk
2026-08-26
10:33
Released Tsw 1.5. check-in: 47419b6640 user: csaba tags: trunk
2026-08-25
13:23
Tsw: Updated for version 1.5. See the ChangeLog for details. check-in: a5957d33e6 user: csaba tags: trunk
2026-07-03
15:12
Tooltip: Minor improvement regarding the tooltip window's placement on macOS. check-in: 2d53beafc0 user: csaba tags: trunk
14:58
Dateentry: Adapted to TIP 750 ("Consistent dark mode for Windows and macOS"). check-in: dfe495a4f1 user: csaba tags: trunk
2026-07-02
16:21
Notifywindow: Adapted to TIP 750 ("Consistent dark mode for Windows and macOS"). check-in: 88199152bb user: csaba tags: trunk
2026-06-30
19:11
Tooltip: Adapted to TIP 750 ("Consistent dark mode for Windows and macOS"). check-in: b2cf69bfad user: csaba tags: trunk
2026-06-25
10:02
Released Tablelist 7.11, Scrollutil 2.10, Mentry 4.5.1, and Tsw 1.4.2. check-in: 033f55552c user: csaba tags: trunk
2026-06-19
14:54
Mentry, Scrollutil, Tablelist: Improved the trace procedure for the variable usingTile. See ticket [a377107988]. check-in: 33c7debd11 user: csaba tags: trunk
09:57
Tsw: Updated for version 1.4.2. See the ChangeLog for details. check-in: 5f4f4bb28a user: csaba tags: trunk
08:56
Mentry: Updated for version 4.5.1. See the ChangeLog for details. check-in: 3d15274704 user: csaba tags: trunk
2026-06-18
19:35
Scrollutil: Updated for version 2.10. See the ChangeLog for details. check-in: 81ff792090 user: csaba tags: trunk
18:07
Tablelist: Updated for version 7.11. See the ChangeLog for details. check-in: c5ead0b713 user: csaba tags: trunk
2026-04-21
16:25
Released Tsw 1.4.1. check-in: 0b727a5483 user: csaba tags: trunk