ways.
Cheers
Cam
On 2024-01-10 08:44, Cam Farnell wrote:
In a rather large program I have this code:
self.TextWidget.focus_set()
print("type(self.TextWidget)=%s"%type(self.TextWidget))
print('Focus_get()=%s'%self.focus_get())
The goal is to have TextWidget get the focus. Usua
update_idletasks() after the focus_set makes no difference.
The TextWidget in question is visible on the screen, and pressing Tab a couple
of times does get it the focus.
Having spent some hours chasing this I'm a tad frustrated, but quite open to
sugges
Hi Vasilis,
I've done this successfully. Bind an event handler to the KeyPress event of the
text. Check the tags and if they are inside immutable text and the key is
something that would change the text the return 'break' which will stop the
processing of the key.
Cheers
nformation and the download link is:
http://www.retroflow.ca
Many thanks
Cam Farnell
Halifax, NS, Canada
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss
I've been using New Mexico Tech example code from here:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/menu-toplevel.html
to create a top-level menu. The example code is:
top = self.winfo_toplevel()
self.menuBar = tk.Menu(top)
top['menu'] = self.menuBar
self.subMenu = tk.Men
I'm not sure if it's exactly what you are looking for, but this is my usual
go-to for information about tkinter:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html
Cheers
Cam Farnell
On 16-04-21 11:59 AM, Mickey Kocic wrote:
Could you provide me with a link to the l
me being stupid, it makes the undo
feature almost totally useless.
Could someone who knows more about this than me shed some light on this? Python
2.7.3 on Ubuntu Linux.
Thanks
Cam Farnell
___
Tkinter-discuss mailing list
Tkinter-discuss@p
ll my eyes went blurry. All to no avail.
There is probably some really simple solution to this, but so far I've failed
to find. it.
Thus, if anyone out there in Tkinter land knows the simple solution or could
point me to a good source of information I would greatly appreciate it.
Thanks
Ca
Hi Emiliano,
Thanks for your reply. Yes they are documented, but per my post what I am
looking for is a PROGRAMATIC way that my application can get the list of
colors, sort of like how in Python you can use dir(__builtin__) to get a list
of all the built-in functions.
Cheers
Cam Farnell
On
ay of getting a list
of the colors that are available. Anyone know this offhand? A quick look
through Tkinter.py was not overly illuminating. I'm using Python 2.7.2 and
whatever version of tk/tcl came with Ubuntu 12.04 LTS.
Thanks
Cam Farnell
You might check out this page:
http://www.bitflipper.ca/Documentation/Tkdnd.html
which gives a description of how to implement drag and drop in tkinter.
On 12-09-03 02:28 AM, rhixz06 wrote:
hey guys!hmm... I'm kinda new in tkinter...my friends and I were developing
an educational game,..I just
RTFM
On 12-03-04 02:27 PM, fresher wrote:
yeah... but if i am able to do that i wont ask. so now I am asking for
help or for full project. thank you.
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/list
Thanks, using the postcommand option does the job but it still strikes me as odd that
a menubutton which has been been activated by clicking on it doesn't generate a
event.
Cam
On 11-11-26 02:37 PM, Michael Lange wrote:
Hi,
Thus spoketh Cam Farnell
unto us on Sat, 26 Nov 2011 12:
workaround for my particular application, but this
strikes me as anomalous behavior.
Cheers
Cam Farnell
import Tkinter as tk
class Application(tk.Frame):
def __init__(self, master=None):
tk.Frame.__init__(self, master)
self.pack()
self.MenuButtonA = tk.Menubutton
Another option is to use Rapyd-TK (http://www.bitflipper.ca/rapyd/). It only
uses pack but it makes it trivially easy to add additional frames and it also
makes it really easy to rearrange the layout of your widgets, something not
easy with pack or grid by themselves.
Cheers
Cam Farnell
pyt
Hmm. Need to draw text on an angle on a canvas but no mention of angled text in
the documentation.
Does anyone know if there is actually a way to do this or is it time to
implement a vector font and do it the hard way?
Thanks
Cam Farnell
Thomas,
A post which in essence says "please write my application for me" is pretty
much a guaranteed way to annoy people - who are generally busy writing their own
applications - or to simply be ignored.
A better approach would be to figure out what part of Tkinter isn't working as
you expec
ael Lange wrote:
Hi,
On Wed, 14 Oct 2009 17:07:30 -0300
Cam Farnell wrote:
The code given exhibits the problem on my Ubuntu Linux box. For the
sake of clarity I enumerate three windows involved in this code:
- The MAIN window which has a button marked "popup" in it.
- The CHILD windows
(starting from scratch again) you click the "popup" button, then drag the
resulting CHILD window to a slightly new position then click the "filedialog" button, the OPEN window appears
*under* the CHILD window which seems less than useful.
Cam Farnell
Michael Lange wrote:
nvoked repeatedly to keep track of the file. It isn't pretty but it works.
Cam Farnell
O'Gorman, Lawrence (Larry) wrote:
I’m trying to figure out if Python and Tkinter can offer a solution to
my following problem. I want to monitor a file and when that file is
changed, I want to detect
I ran into exactly this keyboard shortcut issue while writing the Rapyd-Tk
Python development environment (http://www.bitflipper.ca/rapyd/). My solution
is based on these functions, where the left part is the usual menu label and
the right part is the shortcut. If the length of the shortcut tex
Well one of the best ways is to read the manual first. Some quite reasonable
TkInter documentation is available here:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/
You might look for documentation on the Text widget and then "Methods on Text
widgets". The Text widget is pretty good at dealing
I had to do this recently where one scroll bar needed to control two canvases.
The trick is to create a function which accepts info from the scrollbar and
then propagates it to the widgets to be scrolled. Some snippets from my code:
hscroll = Scrollbar(FF,orient=HORIZONTAL,command=Propagator)
d
A good start would be to read the documentation for the Python "OS" module.
Cam Farnell
brindly sujith wrote:
> hi
>
> i am developing an application in tkinter
>
> i want to know whether we have any option to search a directory from
> tkinter program
>
&g
configure trick.
Here's a simple example:
from Tkinter import *
Root = Tk()
Root.geometry('640x480')
Root.grid_rowconfigure(index=10,weight=1)
Root.grid_columnconfigure(index=10,weight=1)
BB = Button(text='HelloWorld')
BB.focus_set()
BB.grid()
Root.mainloop()
Cam Farnell
inhahe
e and I would probably throw in some
beetle corrections at
the same time.
So the short answer is go ahead and use Rapyd-Tk; it's an active project.
Cam Farnell
Dick Moores wrote:
> <http://www.bitflipper.ca/rapyd/>
>
> Is Rapyd-Tk still developing? If it is, I'm inte
it up? I'm running Python 2.4.3 on an Ubuntu
6.06 system.
Thanks
Cam Farnell
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
And there's always Rapyd-Tk (www.bitflipper.ca/rapyd) which is a
graphical program designed to make it easier to write and maintain
Tkinter applications in the first place. Given it's nature, it's not
likely to move away from Tkinter.
Cam
Michael Lange wrote:
> On Fri, 05 Jan 2007 18:07:59 -0500
28 matches
Mail list logo