¡@

Home 

python Programming Glossary: tk

Know any creative ways to interface Python with Tcl?

http://stackoverflow.com/questions/1004434/know-any-creative-ways-to-interface-python-with-tcl

of code Plumage If so what is your experience not just for Tk Any other possible ways that I have not considered python tcl.. I hope you're ready for this. Standard Python import Tkinter tclsh Tkinter.Tcl tclsh.eval proc unknown args puts Hello.. ready for this. Standard Python import Tkinter tclsh Tkinter.Tcl tclsh.eval proc unknown args puts Hello World dlroW..

Which Python memory profiler is recommended? [closed]

http://stackoverflow.com/questions/110259/which-python-memory-profiler-is-recommended

Mutli-threading python with Tkinter

http://stackoverflow.com/questions/14379106/mutli-threading-python-with-tkinter

threading python with Tkinter I'm drawing little circle on a canvas with these functions.. the circles class App Frame def __init__ self self.root Tk self.can Canvas self.root width 800 height 600 bg black self.can.pack.. import Queue import random import math import time import Tkinter random.seed 0 class App def __init__ self queue width 400..

Documents and examples of PythonMagick

http://stackoverflow.com/questions/1740158/documents-and-examples-of-pythonmagick

import Magick # Use the Python Imaging Library to create a Tk display dpy Magick.TkDisplay startmain 0 # Read the image img.. Python Imaging Library to create a Tk display dpy Magick.TkDisplay startmain 0 # Read the image img Magick.read 'test.gif'..

TkInter Invoke Event in Main Loop

http://stackoverflow.com/questions/270648/tkinter-invoke-event-in-main-loop

Invoke Event in Main Loop How do you invoke a tKInter.. For example If I create a child object and pass it my root Tkinter.Tk and then try to call a method of that root window from.. If I create a child object and pass it my root Tkinter.Tk and then try to call a method of that root window from the child..

An executable Python app [closed]

http://stackoverflow.com/questions/2933/an-executable-python-app

are many but the most popular that I've seen in wild are Tkinter based on Tk GUI toolkit de facto standard GUI library for.. most popular that I've seen in wild are Tkinter based on Tk GUI toolkit de facto standard GUI library for python free for..

Ping a site in Python?

http://stackoverflow.com/questions/316866/ping-a-site-in-python

a site in Python The basic code is from Tkinter import import os sys ana Tk def ping1 os.system 'ping'.. The basic code is from Tkinter import import os sys ana Tk def ping1 os.system 'ping' a Button pen ip 192.168.0.1 a.config..

How to center a Window on the screen in Tkinter?

http://stackoverflow.com/questions/3352918/how-to-center-a-window-on-the-screen-in-tkinter

to center a Window on the screen in Tkinter I'm trying to center a Tkinter window. I know I can programatically.. a Window on the screen in Tkinter I'm trying to center a Tkinter window. I know I can programatically get the size of the.. if there's an equivalent simple call that I can make in Tkinter python tkinter centering share improve this question..

I Need a little help with Python, Tkinter and threading

http://stackoverflow.com/questions/3567238/i-need-a-little-help-with-python-tkinter-and-threading

Need a little help with Python Tkinter and threading I have a Python script which uses Tkinter.. Tkinter and threading I have a Python script which uses Tkinter for the GUI. My little script should create a Toplevel.. Thanks in advance. The code import threading thread from Tkinter import def startCounting global root global topLevelList..

What are the differences between Perl, Python, AWK and sed? [closed]

http://stackoverflow.com/questions/366980/what-are-the-differences-between-perl-python-awk-and-sed

earliest of the next generation of scripting languages Tcl Tk can probably claim primacy . It has powerful integrated regular..

In Tkinter is there any way to make a widget not visible?

http://stackoverflow.com/questions/3819354/in-tkinter-is-there-any-way-to-make-a-widget-not-visible

Tkinter is there any way to make a widget not visible Something.. following example the button disappear when clicked from Tkinter import def hide_me event event.widget.pack_forget root.. import def hide_me event event.widget.pack_forget root Tk btn Button root text Click btn.bind ' Button 1 ' hide_me btn.pack..

Python/Tkinter: Interactively validating Entry widget content

http://stackoverflow.com/questions/4140437/python-tkinter-interactively-validating-entry-widget-content

Tkinter Interactively validating Entry widget content What is.. technique for interactively validating content in a Tkinter Entry widget I've read the posts about using validate True.. is this feature is severely under documented in the Tkinter world but quite sufficiently documented in the Tk world..

How do you run your own code alongside Tkinter's event loop?

http://stackoverflow.com/questions/459083/how-do-you-run-your-own-code-alongside-tkinters-event-loop

do you run your own code alongside Tkinter's event loop My little brother is just getting into programming.. it works nicely but the birds need to move every moment . Tkinter however hogs the time for its own event loop and so his.. share improve this question Use the after method on the Tk object from Tkinter import root Tk def task print hello root.after..

How do I copy a string to the clipboard on Windows using Python?

http://stackoverflow.com/questions/579687/how-do-i-copy-a-string-to-the-clipboard-on-windows-using-python

and ctypes seem to be an overkill for this simple task. Tkinter is a cross platform GUI framework which ships with Python.. to put some text to system clipboard this will do it from Tkinter import Tk r Tk r.withdraw r.clipboard_clear r.clipboard_append.. to system clipboard this will do it from Tkinter import Tk r Tk r.withdraw r.clipboard_clear r.clipboard_append 'i can..

Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”

http://stackoverflow.com/questions/1367373/python-subprocess-popen-oserror-errno-12-cannot-allocate-memory

1 ENOMEM Cannot allocate memory open usr lib python2.4 lib tk agent.py O_RDONLY O_LARGEFILE 1 ENOENT No such file or directory.. 1 ENOMEM Cannot allocate memory open usr lib python2.4 lib tk daemon.py O_RDONLY O_LARGEFILE 1 ENOENT No such file or directory.. 1 ENOMEM Cannot allocate memory open usr lib python2.4 lib tk agent.py O_RDONLY O_LARGEFILE 1 ENOENT No such file or directory..

How to connect a progress bar to a function?

http://stackoverflow.com/questions/15323574/how-to-connect-a-progress-bar-to-a-function

where I make my progress bar if that helps at all pgBar ttk.Progressbar window orient HORIZONTAL length 300 mode determinate.. I have been doing some research and understand that the tkinter window freezes when running a function or something like.. each function that is called inside the main one python tkinter share improve this question Since Tkinter is single..

Fastest way to list all primes below N in python

http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python

rwh_primes rwh_primes1 rwh_primes2 sieveOfAtkin sieveOfEratosthenes sundaram3 sieve_wheel_30 ambi_sieve requires.. the fastest tested. Method ms rwh_primes1 43.0 sieveOfAtkin 46.4 rwh_primes 57.4 sieve_wheel_30 63.0 rwh_primes2 67.8.. sieveOfEratosthenes 178.0 ambi_sieve_plain 286.0 sieveOfAtkin 314.0 sundaram3 416.0 Of all the methods tested allowing..

Code a timer in a python GUI in TKinter

http://stackoverflow.com/questions/2400262/code-a-timer-in-a-python-gui-in-tkinter

self that's what I don't know how to do python gui ubuntu tkinter clock share improve this question Tkinter root windows.. event. Here is a working example # for python 3.x use 'tkinter' rather than 'Tkinter' import Tkinter as tk import time.. 3.x use 'tkinter' rather than 'Tkinter' import Tkinter as tk import time class App def __init__ self self.root tk.Tk self.label..

generating a PNG with matplotlib when DISPLAY is undefined

http://stackoverflow.com/questions/2801882/generating-a-png-with-matplotlib-when-display-is-undefined

usr lib pymodules python2.5 matplotlib backends backend_tkagg.py line 90 in new_figure_manager window Tk.Tk File usr lib.. new_figure_manager window Tk.Tk File usr lib python2.5 lib tk Tkinter.py line 1650 in __init__ self.tk _tkinter.create screenName.. lib python2.5 lib tk Tkinter.py line 1650 in __init__ self.tk _tkinter.create screenName baseName className interactive wantobjects..

Adding a scrollbar to a grid of widgets in Tkinter

http://stackoverflow.com/questions/3085696/adding-a-scrollbar-to-a-grid-of-widgets-in-tkinter

image size by so much just to add a scrollbar python tkinter share improve this question Create a canvas widget.. of the frame embedded in canvas solution import Tkinter as tk class Example tk.Frame def __init__ self root tk.Frame.__init__.. in canvas solution import Tkinter as tk class Example tk.Frame def __init__ self root tk.Frame.__init__ self root self.canvas..

How to add to the pythonpath in windows 7?

http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7

I have C Python27 Lib C Python27 DLLs C Python27 Lib lib tk C other foolder on the path This is the best way that has worked..

Python/Tkinter: Interactively validating Entry widget content

http://stackoverflow.com/questions/4140437/python-tkinter-interactively-validating-entry-widget-content

events Thank you Malcolm python validation textbox tkinter entry share improve this question The correct answer.. and prints all those funky values import Tkinter as tk class MyApp def __init__ self self.root tk.Tk # valid percent.. Tkinter as tk class MyApp def __init__ self self.root tk.Tk # valid percent substitutions from the Tk entry man page..

Cross-platform gui toolkit for deploying Python applications

http://stackoverflow.com/questions/520015/cross-platform-gui-toolkit-for-deploying-python-applications

MBs file 6 licensing 7 others specify Contenders 1 tkinter as currently supported as of 2.6 3.0 2 pyttk library 3.. 1 tkinter as currently supported as of 2.6 3.0 2 pyttk library 3 pyGTK 4 pyQt 5 wxPython 6 HTML CGI via Python based.. sense to anyone unless you're also familiar with how Tcl tk works. Another downside is that Tkinter doesn't have as many..

board-drawing code to move an oval

http://stackoverflow.com/questions/6740855/board-drawing-code-to-move-an-oval

checkers game for college. I have the board drawn using tk but I can't seem to implement a movement function for the pieces... width 2 15 fill Black outline 'Black' j 1 i 1 python tkinter tk python 2.7 share improve this question You can move.. 2 15 fill Black outline 'Black' j 1 i 1 python tkinter tk python 2.7 share improve this question You can move an item..

changing colour of ttk.Progressbar elements in the xpnative theme - python

http://stackoverflow.com/questions/13157214/changing-colour-of-ttk-progressbar-elements-in-the-xpnative-theme-python

in the xpnative theme python I'm using python 2.7 and TK to make a gui which accesses text files and uses data in them..

Python: Why is IDLE so slow?

http://stackoverflow.com/questions/2212722/python-why-is-idle-so-slow

28 5 sec 3000 iterations 70 sec I did some low level TK stuff in the past and i know that the TkText Widget is keeping..

Are there any “nice to program” GUI toolkits for Python? [closed]

http://stackoverflow.com/questions/35922/are-there-any-nice-to-program-gui-toolkits-for-python

GUI toolkits for Python closed I've played around with GTK TK wxPython Cocoa curses and others. They are are fairly horrible.. toolkits for Python closed I've played around with GTK TK wxPython Cocoa curses and others. They are are fairly horrible.. curses and others. They are are fairly horrible to use.. GTK TK wx curses all seem to basically be direct ports of the appropriate..

Removing the TK icon on Python Tkinter windows

http://stackoverflow.com/questions/550050/removing-the-tk-icon-on-python-tkinter-windows

the TK icon on Python Tkinter windows Does anybody know how to make..

Comprehensive tutorial on Pyinstaller?

http://stackoverflow.com/questions/5543920/comprehensive-tutorial-on-pyinstaller

deployment however. A single file deployment including TK support will use this technique. Example should be roughly like..

Compiling python code into a single exe

http://stackoverflow.com/questions/7879465/compiling-python-code-into-a-single-exe

opts ... Where allowed OPTIONS are ... K tk include TCL TK in the deployment. You may make a try with this argument and..