2,541 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
80
views
How do I install ruby tk for ruby 3.4.7 on Windows?
I installed the latest version of ActiveTCL and ruby 3.4.7. When I try to run gem install tk, I get the error
make failed, exit code 2
Gem files will remain installed in C:/Ruby34-x64/lib/ruby/gems/...
Best practices
0
votes
4
replies
44
views
mapi-Interface for Windows
I want to create an new email on windows using the local installed mail-client.
After some research i found "https://www.schwartzcomputer.com/tcl-tk/tcl-tk.html#MAPIMail" But this seems to ...
0
votes
1
answer
111
views
Tkinter ttk.button background is leaking color outside the button border
Button is created like:
style.configure('Dark.TButton', background=button_base, foreground=colors['text'], borderwidth=1,
bordercolor=edge, lightcolor=edge, darkcolor=edge, padding=...
Tooling
1
vote
2
replies
45
views
tcl tk: add command with multiline label
I created a menubar with several menubuttons in tcl/tk. Then I wanted to add several commands. The text ist normally short enough for one line, but there is one text which is longer. Is there any way, ...
1
vote
1
answer
103
views
Get a Tk widget's associated CGContext
I've been working on a Tk widget that uses Cairo for more complex drawings as an extension to the standard Tk functions.
I've had great success on Windows and Linux, but not so much on MacOS. I need ...
1
vote
1
answer
77
views
Connection Error To postGres from Tcl/Tk UI script
Kinda of new to Tcl/Tk, more familiar with CLI scripting. I've got a script (below) to establish a connection with a postGres DB. Once this works, I will continue efforts to create a table editor, as ...
1
vote
1
answer
184
views
ttk.Combobox selected text vanishes when focus is lost (clam theme, readonly)
I'm new to python and recently started coding a combobox using the "clam" UI theme.
However, the selected text vanishes when focus is lost from the dropdown? It seems confined to "clam&...
-1
votes
1
answer
68
views
How to disable a single menu item in Perl/Tk menubar?
The following code creates a menu list called "User Selection" with four menu items: "Save", "Save As", "Load, and "Load From":
my $userselectedmenuitems = ...
1
vote
1
answer
71
views
Tk text widget - why does deleteTextTaggedWith fail?
my $mw = MainWindow->new;
my $text = $mw->Text->pack;
$text->insert('end', 'hello world', 'mytag');
$text->deleteTextTaggedWith('mytag');
MainLoop;
The deleteTextTaggedWith causes:
...
2
votes
1
answer
86
views
Why do all Tk buttons in my script have the same command?
I am on Fedora, using Tcl9 and Tk.
Installed packages
tk.x86_64 1:9.0.0-4.fc42 fedora
tcl.x86_64 1:9.0.0-7.fc42 624cbc92582d4ecfae4c58749abde4f8
I want to create buttons that each do something ...
1
vote
2
answers
78
views
Why is changing the class of a widget in perl tk wrecking the widget
Simplified code to show the problem:
my $mw = MainWindow->new;
my $label = $mw->Label(-text => 'Hello', -class => 'Class1')->pack;
$label->configure(-class => 'Class2');
...
0
votes
0
answers
51
views
TTK - Don't apply current style for single widget (in own dialog window)
I have the following problem. In my application I use 'black' theme from ttkthemes, with some additional changes. I also uses dialogs for getting values. I also have created my own dialog with ttk....
1
vote
1
answer
59
views
Tk Get Windows HDC
I'm modifying a Tk widget on Windows. I need to get the corresponding HDC given either a Tk Window, Drawable, or GC. I've tried poking around in the Tk internals but can't find anything helpful. The ...
0
votes
1
answer
55
views
How to fix the problem when the Tk window does not apply changes in the code, only the default window
I did my homework from the textbook (easy currency converter), wrote everything as in the assignment, but the Tk window does not change at all, only the usual default Tk window
from tkinter import *
...
1
vote
0
answers
65
views
Tk for ruby on sequoia cannot succeed installation
Sequoia, ruby(3.3.1),python(3.13.2) and tk running.
Installed ActiveState (as suggested).
gem install tk
failed because no X11 or (guess) can't find tcl libs
I don't know where these are installed by ...