tk

Error “.onLoad failed in loadNamespace() for 'tcltk'”

情到浓时终转凉″ 提交于 2019-11-26 17:59:13
I have a general question about how to effectively load any kind of external package into R. I have found that many sources detailing this information are simply insufficient, but I will leave out mentioning those respective URLs. I have successfully loaded external packages into R before, but I am having difficulties loading the fgui package. In my specific case, I cannot load the library fgui into R Studio. First I download directly from CRAN with the command: install.packages("fgui", lib="~/Documents/R_dir") This works fine for me. My working directory is set to ~/Documents/R_dir The next

Scaling of Tkinter GUI in 4k (3840*2160) resolution?

回眸只為那壹抹淺笑 提交于 2019-11-26 16:56:08
问题 I use LinuxMint 17.3 Cinnamon in VirtualBox, 1920*1080 resolution is used in this machine, the Hi-DPI option is turned on. The host machine is Windows 10, with 3840*2160 resolution. Despite turning on Hi-DPI option in LinuxMint, some applications become to look good for comfortable work, in terms of scaling, but python-tk GUI (python2) hasn't been changed - font size is tiny, changing of Font options in Cinnamon doesn't change fonts in tk. Is there any way to scale correctly already written

Steps to Create A Tcl Starkit on a Windows Platform

扶醉桌前 提交于 2019-11-26 16:55:24
问题 I am trying to figure out the basic steps to creating a Tcl starkit in Windows. I've asked a similar question before, as well as purchased a book on Tcl programming, visited wiki.tcl.tk, emailed Tcl programmers directly, etc... In all, I've received great feed back from my resources and this website; however, I've failed to explain that I am a complete novice when it comes to building batch files, using a command console, and creating directories. I really need someone to basically spell

How do I get rid of Python Tkinter root window?

牧云@^-^@ 提交于 2019-11-26 14:30:35
Do you know a smart way to hide or in any other way get rid of the root window that appears, opened by Tk() ? I would like just to use a normal dialog. Should I skip the dialog and put all my components in the root window? Is it possible or desirable? Or is there a smarter solution? Probably the vast majority of of tk-based applications place all the components in the default root window. This is the most convenient way to do it since it already exists. Choosing to hide the default window and create your own is a perfectly fine thing to do, though it requires just a tiny bit of extra work. To

How to create equal-width columns in Python 2.7 with Tkinter

寵の児 提交于 2019-11-26 09:59:47
问题 How can I force the columns in a Tkinter application window to be of equal width? The tkdocs website states as follows: The width of each column (or height of each row) depends on the width or height of the widgets contained within the column or row. This means when sketching out your user interface, and dividing it into rows and columns, you don\'t need to worry about each column or row being equal width [or height, presumably]. http://www.tkdocs.com/tutorial/grid.html But I want the columns

Removing the TK icon on a Tkinter window

Deadly 提交于 2019-11-26 09:09:12
问题 Does anybody know how to make the icon not show up? I\'m looking for a way to have no icon at all. 回答1: On Windows Step One: Create a transparent icon using either an icon editor, or a site like rw-designer. Save it as transparent.ico . Step Two: from tkinter import * tk = Tk() tk.iconbitmap(default='transparent.ico') lab = Label(tk, text='Window with transparent icon.') lab.pack() tk.mainloop() On Unix Something similar, but using an xbm icon. 回答2: Similar to the accepted answer (with the

board-drawing code to move an oval

人盡茶涼 提交于 2019-11-26 04:48:30
问题 I am working on a python checkers game for college. I have the board drawn, using tk, but I can\'t seem to implement a movement function for the pieces. If anyone see any errors in my code, or can offer help, I would appreciate. Here is the complete source. Thanks in advance. I know that this draws the checker pieces. I don\'t know how to redraw the pieces, without deleting the other pieces. I have looked online at the move function, and tried simple test that worked, yet I have not been able

How do I get rid of Python Tkinter root window?

你。 提交于 2019-11-26 03:37:58
问题 Do you know a smart way to hide or in any other way get rid of the root window that appears, opened by Tk() ? I would like just to use a normal dialog. Should I skip the dialog and put all my components in the root window? Is it possible or desirable? Or is there a smarter solution? 回答1: Probably the vast majority of of tk-based applications place all the components in the default root window. This is the most convenient way to do it since it already exists. Choosing to hide the default

How do I get rid of Python Tkinter root window?

流过昼夜 提交于 2019-11-26 03:11:42
问题 Do you know a smart way to hide or in any other way get rid of the root window that appears, opened by Tk() ? I would like just to use a normal dialog. Should I skip the dialog and put all my components in the root window? Is it possible or desirable? Or is there a smarter solution? 回答1: Probably the vast majority of of tk-based applications place all the components in the default root window. This is the most convenient way to do it since it already exists. Choosing to hide the default