tk

Hide console for Tkinter app on OSX

I'm trying to hide the Terminal when I launch a GUI Tkinter based app, but when I double click the app.py file on OSX, the Terminal window appears. I've tried changing the extension to .pyw and tried launching it with /usr/bin/pythonw, but no matter what, the Terminal window still appears. I've even tried adding the try/except below,...

Color a Button after subprocess has finished

I have a Tk python program that creates a list of python files in the current directory and generates a button for each of them. When you click a button the corresponding python program is launched via subprocess in a new gnome-terminal. I'd like to switch the button's color to red after the subprocess has finished executing on the new t...

Book Recommendations To Learn Tcl/Tk

I'm now in love with Tcl/Tk because of the flexibility and easy way to do the things, but I like to learn by books, then I want some book recommendation to learn. ...

Problem with tk_messageBox during Tcl/Tk initialization script.

With the following Tcl script, the entry widget will not accept input. It appears but is unresponsive. pack [entry .a] -padx 15 -pady 15 tk_messageBox -message {test} If I comment out the tk_messageBox line, then the entry widgets works fine. What causes this behavior and how do I fix it? I'm using Tcl/Tk 8.5.2 on Windows. To clarif...

Why does not the Python MSI installers come with Tcl/Tk header files?

The MSI installers downloadable from python.org does not include Tcl/Tk header (not source) files (that are required to compile some packages like matplotlib). Does anyone know of the rationale behind not including them? ...

How to make all widgets state to disabled in tk?

Hi, Is there way to disable all widget in tk window with single proc? argument can be just initial toplevel path. ...

Force upper case input in Tcl/Tk entry field

I've got a Tcl/Tk window with an entry box in which I'd like to force upper case character entry. That is, if any letters are typed I'd like them to appear in upper case in the entry field, instead of simply rejecting any lowercase input. I've looked at the documentation for entry and the Entry Validation page on the Tcl/Tk wiki, but I ...

is Tkinter worth learning?

I generally make my desktop interfaces with Qt, but some recent TK screenshots convince me Tk isn't just ugly motif any more. Additionally Tkinter comes bundled with Python, which makes distribution easier. So is it worth learning or should I stick with Qt? ...

How to change Motif theme in DDD and Insight to something more pleasant?

I have Tk version 8.5.3 installed, theming engine support added since 8.5. Still, I don't know how to use themes, default Motif is just ugly: Screenshot ...

How to change the font and font size in ttk::button (themed widgets)?

How do you change the font and font size in the themed button widget (ttk::button)? ttk::button .x.buttonTEST -text "TEST" -font ?? # the -font option is not valid with ttk::button ...

Are there any bindings between .NET and TK

It would be interesting/nice to have something portable like TK to be used in Windows and in Linux with Mono like TK. Does anyone know of any bindings? or What would be a good place to start in creating bindings. ...

Cannot change font size in Tk

Hello, I'm trying, for the first time, to create a GUI in Ruby using Tk. I've copied a code snippet from one of the numerous web tutorials and try to change the font for one of the labels, but nothing seems to affect how the text is presented. Here's the code: require 'tk' root = TkRoot.new('title'=>'MCIS') defaultFont = TkFont.new(...

Why does my Perl/Tk button widget size vary with different xterm clients?

I have a Perl/Tk script in which I am creating a button widget of height 1. Now when I execute script through Citrix xterm client I get button displayed. Again when I execute script now through xterm client in my PC size of button widget differs. Can someone explain why is this happening, and what should I do so that size of button widg...

perl: tk: a way/widget that allows pixel level control over the output

I want something like a canvas, but where i'd be able to manipulate pixels easily in addition to all the provided geometries, that can be drawn on canvas. Is it possible to embed something like GD::Image into a canvas? So then I maybe could make the image transparent and set some pixels in it (GD::Image->setPixel()) positioning it over ...

How can I display a Perl/Tk window in the bottom righthand corner?

I have planned to do the chatting the exercise Perl socket. In this I want to display the require window using Perl/Tk. Here my requirement is that the window has to display in the bottom right corner. It is like Gmail Chat window. What do I need to achieve this? By default it displays in top left corner. ...

How to add Scrollbar to the Mainwindow using Perl TK

I want to add scroll bar in my main window. How can I add scroll bar in my main window. Please help me. ...

How do pass arguments to subroutines in Perl/Tk?

I have designed one sign-up form,in this form after getting all necessary values I will click submit button. And while clicking that submit button I want to call one function and I want to pass the arguments to that function. I have written code for this purpose,but the function is called first before getting the details.(i.e)after get...

What are the disadvantages of the Perl Tk module?

What are the disadvantages of the Tk module compared to other solutions to create a GUI in Perl? ...

VB6 ActiveX controls into a TCL/Tk application

Whats the most common way of instantiating VB6 ActiveX controls inside of an Tcl/Tk wrapper application. Are there performance issues with this setup i.e. around GDI handles? ...

How can I create 2 Perl/TK text areas with scrollbars that when I scroll one both text areas scroll at the same time?

Is it possible using TK to create to text areas with scrollbars that when you scroll one the other moves as well? What I want to create is a text area with headers in and then text areas underneath row headings in one and data in the other. Kind of Like when you freeze panes in Excel. I have the data in a set of arrays for each line, so...