Tk Library Source Code

Timeline
Login

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

50 most recent check-ins

2026-11-22
16:40
canvas::zoom: cancel the pending redraw when the widget is destroyed (part of [1571af09d8]). Destroying the widget right after its creation raised the background error namespace "::uevent::onidle::Snit_instN" not found, and since the constructor now always requests the build, this happened for every new widget. uevent::onidle cannot cancel a request, so the widget schedules the redraw with after idle itself and cancels it in the destructor. leaf check-in: d8517ef9aa user: serhiy.storchaka tags: canvas-zoom-build-ui
16:39
Fix vertical boxplots, Taylor diagrams and circle plots on other canvases, heatmap scale and documented command names in plotchart (part of [c2aabb1176]): createBoxplot with vertical orientation called DrawXlabels without its options argument; createTaylorDiagram and createCirclePlot used the hardcoded canvas name .c instead of the canvas of the plot; the heatmap colour was computed from value/(max-min) instead of (value-min)/(max-min), giving invalid colours when the scale does not start at 0. Add createPolarPlot, createWindrose and createCircleplot, the names used in the manual page, as aliases of createPolarplot, createWindRose and createCirclePlot, and export all six names. leaf check-in: 07a3f954e0 user: serhiy.storchaka tags: plotchart-boxplot-heatmap-canvas-names
16:39
Fix XOR mask padding, BMP text mode and EXEtoICO in ico (part of [39f280ebe4]): the rows of the XOR mask are padded to a multiple of 32 bits, but ico read and wrote them unpadded, so a standard 16x16 1 bpp icon (and any width whose rows are not 32-bit aligned) was read and written wrong. readDIB, readDIBFromData, getRawIconDataBMP and calcSize now use the padded size and strip the padding, and getXORFromColors pads each row. BMP files are now opened in binary mode, so their data is no longer translated. EXEtoICO resets the list of size fields for each icon group, so the icon files after the first one are no longer corrupted. The XOR and BMP fixes are also applied to ico0.tcl. leaf check-in: b6bcb5aad3 user: serhiy.storchaka tags: ico-xor-padding-bmp-binary
16:39
Fix menubar instances and radiobutton variables (part of [f44b8079c5]): create the named font sfont only if it does not exist yet, so more than one menubar can be created, and give radiobutton entries the group variable created for the window at install time (with %% substituted) instead of the variable template followed by an empty -variable, so radiobutton groups are independent and their initial value is selected. The tests no longer delete sfont between tests. leaf check-in: d7cccb3a76 user: serhiy.storchaka tags: menubar-instances-radio-variables
16:39
Fix voltmeter, tachometer, rdial and radioMatrix value handling (part of [991194f025]): voltmeter and tachometer get the documented -value option (configuring it after creation works like the set method), set without -variable draws the needle with drawline instead of the nonexistent draw method, and at creation the value is taken from an existing -variable, so get works before the variable is written and the needle starts at the value of the variable. rdial writes its -variable when the dial is dragged or moved with the mouse wheel, and initializes a -variable that does not exist yet instead of ::options(-variable). radioMatrix calls its set method instead of the nonexistent Set for the initial value of -variable. leaf check-in: c8daa33362 user: serhiy.storchaka tags: controlwidget-value-variable
16:39
Fix canvas::zoom creating an empty widget (part of [1571af09d8]): the constructor only requested building the user interface when no options were given, and only -orient, -levels and -variable request it when changed, so canvas::zoom .z -command cmd or -orient vertical (the default) created a widget without the zoom buttons. The constructor now always requests the build; uevent::onidle merges repeated requests into one. check-in: b12d931fa2 user: serhiy.storchaka tags: canvas-zoom-build-ui
16:39
Fix history navigation (part of [05344d311a]): since version 0.2 ([5e324065bf]) the current position started at 0, the index of the newest entry, so Up skipped the newest entry, a single entry could never be recalled and Down never restored the text being typed. The position starts at -1 again as in 0.1. To keep the intent of [5e324065bf], Up and Down skip the newest entry when the entry already shows it (it was not cleared after ::history::add). ::history::add now finds duplicates with exact matching instead of glob matching, and keeps at most length entries instead of length+1. leaf check-in: 60a888e316 user: serhiy.storchaka tags: history-navigation-off-by-one
16:02
Fix map::track::entry (part of [18013842f1]): canvas::edit::polyline 0.3 reports each change of the line (append, prepend, insert, remove, move, clear) instead of the whole list of points, so every edit and the set method failed with wrong # args. Apply the reported change to the geo locations. Also take the zoom level and the canvas size from the current view of the map at creation, so that set works before the map reports a view change, and remove the return at the start of the destructor, so that it restores -on-view-change of the map. New map_track_entry.test. leaf check-in: abd5df07d3 user: serhiy.storchaka tags: map-track-entry
16:02
Fix destroying canvas::edit::points editors (part of [1571af09d8]): the destructor passed the bound parts as separate arguments to Bindings Remove, which takes a list, so destroying an editor failed unless exactly one of drag and edit was enabled, and the editors built on it (circle, rectangle, polyline, quadrilateral) and their users printed errors when destroyed. Also make Bindings Add add to the bound parts instead of replacing them, so that disable removes the drag bindings after enable drag; enable edit. leaf check-in: a421d5343a user: serhiy.storchaka tags: canvas-edit-points-destroy
15:48
Fix map::point::file::write and map::display zoom-to (part of [404086a86f] and [18013842f1]): write used the undefined variable data instead of gdata; zoom-to read the undefined variable levels and called ZoomSet with too few arguments. New map_display.test for zoom-to. leaf check-in: ccadbaf3fc user: serhiy.storchaka tags: map-point-write-zoom-to
15:48
Fix crosshair::bbox_remove (part of [fac48a6318]): the regexp was matched against "->" instead of the token, so every token was rejected, and the index taken from the token was decremented although it is already 0-based. leaf check-in: a145ff74b3 user: serhiy.storchaka tags: crosshair-bbox-remove
15:48
Fix the + and - keys of datefield with Tk 9 (part of [2f7e44b702]): Tk 9 reports printable keysyms such as plus and minus as the character itself in %K, so accept both forms. leaf check-in: 5288543667 user: serhiy.storchaka tags: datefield-tk9-plus-minus
15:48
Fix loading of shtmlview (part of [2b4687ecf6]): shtmlview::shtmlview failed with "can't read argv" when ::argv0 exists but ::argv does not; shtmlview::mkdoc required the package mkdoc::mkdoc, while Tcllib provides the command mkdoc::mkdoc in the package mkdoc, and passed the argument -html, which Tcllib's mkdoc::mkdoc rejects. The manual pages now name the package mkdoc. leaf check-in: 8b8656167b user: serhiy.storchaka tags: shtmlview-load-fixes
15:48
Fix the creation of dgw::txautorep with Tk 8.6 (part of [0ffbe8ccec]): Tk 8.6 rejects the binding <KeyRelease-)> with "bad event type or keysym"; use <KeyRelease-parenright>. The txautorep tests now also run with Tk 8.6. leaf check-in: 74a9b3efaa user: serhiy.storchaka tags: txautorep-tk86-binding
2026-11-21
21:04
Document widget::arrowbutton and widget::scrolledtext in widget.man: the packages were provided but not documented. leaf check-in: 2e044a4ef6 user: serhiy.storchaka tags: widget-manpage-additions
20:49
Fix [bda974b027]: canvas::track::circle has no documentation. Add canvas_trcircle.man, which documents the class and instance API of the tracker. leaf check-in: 043a3f6da4 user: serhiy.storchaka tags: canvas-trcircle-manpage
20:49
Fix [670057bcad]: plotanim has no documentation. Add plotanim.man, which documents the commands of plotanim: describing, creating, moving and tracking objects in a Plotchart plot, and the animation commands. leaf check-in: e84a60b4a0 user: serhiy.storchaka tags: plotanim-manpage
20:17
Fix [bf9e97fc3d]: no documentation for xyplot. Add xyplot.man, which documents the xyplot widget: its options, the add_data, set_data, remove_data, cget and set_zoomstack subcommands and the zooming with the mouse. leaf check-in: 302afe9c86 user: serhiy.storchaka tags: xyplot-manpage
19:27
Fix [75429691a0]: docs for module map. Fill the API sections of the manual pages of all map packages: the file formats and geo resource values, the store API of the file system stores, the memory stores, map::display and its tile provider contract, map::provider::osm, the map-display overlays, the display, table-display and entry widgets, and map::mark. Only the public interface is documented. leaf check-in: 6494797f4d user: serhiy.storchaka tags: map-manpages
19:07
Fix [1006144fff]: style module has no documentation. Add style.man, which documents the commands of the packages style, style::as and style::lobster, the parts of the style::as style and its mouse wheel and Control-mouse wheel features. leaf check-in: 65fcaf0a18 user: serhiy.storchaka tags: style-manpage
18:03
Plotchart-301.3: find the arc of the first segment with items; centre passed the type=arc pseudo-tag to the canvas, so the test failed with an error instead of checking the direction. leaf check-in: 7e62d4a31a user: serhiy.storchaka tags: tests-plotchart
17:24
khim.test: show the main window during the tests. The tklib test harness withdraws it, so the widgets were never mapped and the tests using generated key events failed under sak. leaf check-in: dc4d470107 user: serhiy.storchaka tags: tests-khim
16:49
Fix [b1c109e119]: widgetPlus tests fail with Tk 9. The tests copied from the Tk 8.6 entry and spinbox tests now expect the Tk 9 error messages for bad screen distances and unknown fonts, the fraction kept in screen distances, the error for a negative -highlightthickness and the additional option. entry-2.1.1 in ttkEntryPlus.test gives the focus to the entry before packing the scrollbar, as Tk's own copy of the test does, and no longer needs the failsOnUbuntu constraint. leaf check-in: 33fd34f166 user: serhiy.storchaka tags: widgetPlus-tests-tk9
16:25
Merge tests-controlwidget: show the main window during the tests. leaf check-in: c00dfdb8a5 user: serhiy.storchaka tags: thermometer-set-value
16:25
Merge tests-controlwidget: show the main window during the tests. leaf check-in: 48477ace33 user: serhiy.storchaka tags: controlwidget-tk9-screen-distances
16:25
Merge tests-controlwidget: show the main window during the tests. leaf check-in: f55bf55f36 user: serhiy.storchaka tags: tachometer-needle-angle
16:25
Merge tests-controlwidget: show the main window during the tests. leaf check-in: 75b0a9dd88 user: serhiy.storchaka tags: rdial-default-width
16:25
controlwidget.test: show the main window during the tests. The tklib test harness withdraws it, so the widgets were never mapped and the drag and mouse wheel tests failed under sak. leaf check-in: b63e7d34e0 user: serhiy.storchaka tags: tests-controlwidget
14:56
Merge tests-plotchart. No knownBug tests in it are affected by this fix. leaf check-in: 5a5891b1c4 user: serhiy.storchaka tags: xyplot-plotlist
14:53
Merge tests-plotchart. No knownBug tests in it are affected by this fix. Update the expected radial labels in Plotchart-304.1 from 1.0 2.0 3.0 to 1 2 3: polar radial labels are now formatted like the other axis labels. leaf check-in: 1e08678998 user: serhiy.storchaka tags: plotchart-zero-labels
14:50
Merge tests-plotchart. No knownBug tests in it are affected by this fix. leaf check-in: 64ccf01653 user: serhiy.storchaka tags: plotchart-xtitle-axis-font
14:47
Merge tests-plotchart. No knownBug tests in it are affected by this fix. leaf check-in: ad4bcdb6fe user: serhiy.storchaka tags: plotchart-bars-clip-axis
14:44
Merge tests-plotchart. No knownBug tests in it are affected by this fix. leaf check-in: 781da3e881 user: serhiy.storchaka tags: plotchart-bindplot-over-data
14:41
Merge tests-plotchart. Tests Plotchart-106.12 and Plotchart-106.13 (yconfig on log-Y plots, ticket [4c28633e3a]) now run without the knownBug constraint. leaf check-in: 22d474ef28 user: serhiy.storchaka tags: plotchart-logy-yconfig-labels
14:38
Merge tests-plotchart. Test Plotchart-106.11 (xconfig on X-logY plots, ticket [38d95aee72]) now runs without the knownBug constraint. leaf check-in: 8779c04022 user: serhiy.storchaka tags: plotchart-xlogy-xconfig
14:21
Add tests for plotchart: all create commands, general plot methods, XY plot data methods, charts, 3D and specialised plots, plotconfig/plotstyle, eraseplot, plotmethod, plotpack and coordinate transformations check-in: 2c9f3e70d4 user: serhiy.storchaka tags: tests-plotchart
13:57
Add tests for widgetPlus: the edit subcommands (undo, redo, canundo, canredo, modified, reset, separator), the options -undo, -maxundo and -inactiveselectbackground, the <<Undo>>/<<Redo>> bindings and key mappings, the <<Selection>> event, EnableBWidget, and how undo interacts with insert, delete, set/current/invoke, typing, cut, paste, validation and -textvariable, for all five widgets. Known bugs are marked knownBug. leaf check-in: 8554515ba0 user: serhiy.storchaka tags: tests-widgetPlus
13:56
Merge tests-ctext. The tests of the fix branch were moved into ctext.test: ctext-usertags-1.4 as ctext-3.14 and ctext-usertags-1.1, 1.2 and 1.3 as ctext-5.9, 5.10 and 5.11. leaf check-in: 3391de7ed7 user: serhiy.storchaka tags: ctext-keep-user-tags
13:56
Do not raise an error when a ctext with highlight classes is destroyed: clearHighlightClasses is called from the Destroy handler after the widget command was renamed away, so delete the tags through the inner text widget and only while it exists. check-in: fb29b3bc8b user: serhiy.storchaka tags: ctext-keep-user-tags
13:49
Merge tests-ipentry. The knownBug test ipentry-5.13 now runs. The fix branch's test for ipentry6 is kept as ipentry-5.21 in ipentry.test; its test for ipentry is covered by ipentry-5.13. leaf check-in: c65f572acf user: serhiy.storchaka tags: ipentry-array-textvariable
13:48
Merge tests-ipentry. The knownBug tests ipentry-5.10 and ipentry-5.12 now run, and the rm helper no longer works around the bug. The tests of the fix branch are kept as ipentry-5.19 and ipentry-5.20 in ipentry.test. leaf check-in: e2588221d6 user: serhiy.storchaka tags: ipentry-remove-traces
13:47
Merge tests-ico. The knownBug tests ico-4.11 and ico-6.10 now run. The tests of the fix branch are kept as ico-6.32 and ico-6.33 in ico.test. leaf check-in: 8b58f0e302 user: serhiy.storchaka tags: ico-andmask-padding
13:47
Merge tests-swaplist. The knownBug tests swaplist-5.1 and 5.2 now run. The tests of the fix branch were moved into swaplist.test as swaplist-5.5 and 5.6; its test 1.1 is covered by swaplist-5.1 and 5.2 and was dropped. leaf check-in: c18d491fd6 user: serhiy.storchaka tags: swaplist-embed-double-click
13:46
Merge tests-ico. The knownBug tests ico-3.9 and ico-5.18 now run. The test of the fix branch is kept as ico-3.13 in ico.test. leaf check-in: 1fb71c39e3 user: serhiy.storchaka tags: ico-256-icons
13:46
Merge tests-ctext. No knownBug tests are affected by this branch. leaf check-in: 3c8a499fa5 user: serhiy.storchaka tags: ctext-move-demos
13:46
Merge tests-ctext. The knownBug test ctext-7.7 now runs. The tests of the fix branch are covered by ctext-7.2, 7.3 and 7.7 and were dropped. leaf check-in: b8428a536d user: serhiy.storchaka tags: ctext-comments-wrapped-widget
13:46
Merge tests-widgetl. The knownBug tests widget_listentry-0.1 and widget_listsimple-0.1 now run, with the expected version updated to 0.1.3. The tests of widgetl.test were moved into widget_listsimple.test (widget_listsimple-0.2) and widget_listentry.test (widget_listentry-0.2) and widgetl.test was removed. leaf check-in: c7e8e12333 user: serhiy.storchaka tags: widgetl-png-without-img
13:45
Merge tests-ctext. The knownBug test ctext-6.5 now runs. The tests of the fix branch were moved into ctext.test as ctext-6.6 to 6.8. ctext-6.2 now expects the error message of the text widget, since edit modified is passed to it. leaf check-in: 741c080aae user: serhiy.storchaka tags: ctext-modified-event
13:44
Merge tests-widget. The knownBug tests widget_dateentry-3.2, widget_dateentry-3.5 and widget_dateentry-3.6 now run. The tests of dateentry.test were moved into widget_dateentry.test (widget_dateentry-3.10, widget_dateentry-3.11, widget_dateentry-3.12) and dateentry.test was removed. leaf check-in: c6b1359633 user: serhiy.storchaka tags: dateentry-textvariable
13:42
Merge tests-autoscroll. The knownBug test autoscroll-3.6 now runs. The tests of the fix branch are covered by existing tests of tests-autoscroll (autoscroll-2.3, autoscroll-3.3, autoscroll-3.6). leaf check-in: 9fd2877591 user: serhiy.storchaka tags: autoscroll-pack-in