Re: [Tkinter-discuss] Focus issue

2024-01-10 Thread Cam Farnell
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

[Tkinter-discuss] Focus issue

2024-01-10 Thread Cam Farnell
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

Re: [Tkinter-discuss] Text: immutable strings

2018-10-26 Thread Cam Farnell
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

[Tkinter-discuss] Help related to tkinter on Mac

2018-03-27 Thread Cam Farnell
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

[Tkinter-discuss] Dealing with a Tk reference

2016-09-04 Thread Cam Farnell
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

Re: [Tkinter-discuss] standard tkinter command set

2016-04-21 Thread Cam Farnell
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

[Tkinter-discuss] Tkinter Text Undo

2014-04-11 Thread Cam Farnell
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

[Tkinter-discuss] OT: Unicode

2014-03-21 Thread Cam Farnell
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

Re: [Tkinter-discuss] Standard colors

2014-02-17 Thread Cam Farnell
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

[Tkinter-discuss] Standard colors

2014-02-16 Thread Cam Farnell
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

Re: [Tkinter-discuss] DRAG and DROP image

2012-09-03 Thread 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

Re: [Tkinter-discuss] [REQ] Tkinter programmer

2012-03-04 Thread Cam Farnell
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

Re: [Tkinter-discuss] Button-press on Menubuttons

2011-11-26 Thread Cam Farnell
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:

[Tkinter-discuss] Button-press on Menubuttons

2011-11-26 Thread Cam Farnell
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

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Cam Farnell
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

[Tkinter-discuss] Angled text on canvas.

2010-11-20 Thread Cam Farnell
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

Re: [Tkinter-discuss] Desperate GUI Help Please!!

2010-03-16 Thread 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

Re: [Tkinter-discuss] Need help on gui focus l

2009-10-15 Thread Cam Farnell
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

Re: [Tkinter-discuss] Need help on gui focus l

2009-10-14 Thread Cam Farnell
(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:

Re: [Tkinter-discuss] non-GUI event detection in Tkinter mainloop()

2009-05-20 Thread Cam Farnell
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

Re: [Tkinter-discuss] Kinetic Scrolling and Keyboard Shortcuts in Menus

2008-08-31 Thread Cam Farnell
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

Re: [Tkinter-discuss] simple way of clearing out a text widget

2008-08-11 Thread Cam Farnell
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

Re: [Tkinter-discuss] Newbie's Scrollbar question

2008-04-20 Thread Cam Farnell
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

Re: [Tkinter-discuss] how to search a directory from a Tkinter program

2008-03-19 Thread Cam Farnell
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

Re: [Tkinter-discuss] having trouble, newbie

2008-03-18 Thread Cam Farnell
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

Re: [Tkinter-discuss] Is Rapyd-Tk still developing?

2008-02-24 Thread Cam Farnell
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

[Tkinter-discuss] Tkinter slows down

2008-01-07 Thread Cam Farnell
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

Re: [Tkinter-discuss] Shareware product using Tkinter

2007-01-07 Thread Cam Farnell
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