From bob at passcal.nmt.edu Thu Mar 1 00:27:35 2012 From: bob at passcal.nmt.edu (Bob Greschke) Date: Wed, 29 Feb 2012 16:27:35 -0700 Subject: [Tkinter-discuss] Tk*Font question Message-ID: What's the correct way to change the font size? The "Change" button isn't doing what I thought it would. The font changes size, but turns into some proportional font. I'm kinda new (1 day) to using TkFixedFont and its friends. I'm used to ("Monoco", 9) sort of stuff and I'm not sure I understand what's going on. Thanks! Bob Python 2.x, Tcl/Tk 8.5.x ==== #! /usr/bin/python from Tkinter import * Root = Tk() Txt = Text() Txt.pack() Txt.insert(END, "WWWWWWWWWWWW\n") Txt.insert(END, "MMMMMMMMMMMM\n") Txt.insert(END, "iiiiiiiiiiii\n") print "Before: ", Txt.cget("font") def changeFont(e = None): Txt.configure(font = (Txt.cget("font").split()[0], 9)) Root.update() print "Change: ", Txt.cget("font") return def changeFont2(e = None): Txt.configure(font = Txt.cget("font").split()[0]) Root.update() print "Change2:", Txt.cget("font") return Button(Root, text = "Change", command = changeFont).pack(side = TOP) Button(Root, text = "Change2", command = changeFont2).pack(side = TOP) Root.mainloop() ==== From bryan.oakley at gmail.com Thu Mar 1 01:06:36 2012 From: bryan.oakley at gmail.com (Bryan Oakley) Date: Wed, 29 Feb 2012 18:06:36 -0600 Subject: [Tkinter-discuss] Tk*Font question In-Reply-To: References: Message-ID: On Wednesday, February 29, 2012, Bob Greschke wrote: > What's the correct way to change the font size? The "Change" button isn't > doing what I thought it would. The font changes size, but turns into some > proportional font. I'm kinda new (1 day) to using TkFixedFont and its > friends. I'm used to ("Monoco", 9) sort of stuff and I'm not sure I > understand what's going on. The best way is to use a named font. With that you can do 'myfont.configure(size=new_size)'. Then, every widget that uses that font will automatically see the change. For more information see http://www.pythonware.com/library/tkinter/introduction/x444-fonts.htm Named fonts are one of the true gems of tk. They have been part of the toolkit for probably a decade or more, and still to the best of my knowledge no popular toolkit has anything as powerful and easy to use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sofawatkins at hotmail.com Thu Mar 1 22:35:55 2012 From: sofawatkins at hotmail.com (jason watkins) Date: Thu, 1 Mar 2012 21:35:55 +0000 Subject: [Tkinter-discuss] Text box reveal directory path? Message-ID: Is it possible to create a text box that will reveal the full path of a folder/file when that folder/file is dragged and dropped onto the text box? I want it to function like terminal does on a Mac. Thanks for any help, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From charras at me.com Fri Mar 2 12:17:04 2012 From: charras at me.com (Guido R. C Guerrero) Date: Fri, 02 Mar 2012 11:17:04 +0000 (GMT) Subject: [Tkinter-discuss] Tkinter-discuss Digest, Vol 96, Issue 13 In-Reply-To: Message-ID: <45342aaa-286d-61b8-ca60-9e28a2d4df6d@me.com> Lion; I'll very happy to help you. I use Python as my main developing language, and use Tkinter as my gui interface, so, having something that makes things easier and faster will be great. Guido Carballo On Feb 22, 2012, at 08:00 AM, tkinter-discuss-request at python.org wrote: Send Tkinter-discuss mailing list submissions to tkinter-discuss at python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/tkinter-discuss or, via email, send a message with subject or body 'help' to tkinter-discuss-request at python.org You can reach the person managing the list at tkinter-discuss-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Tkinter-discuss digest..." Today's Topics: 1. Re: General Tkinter Assistance Module (python at bdurham.com) 2. Re: General Tkinter Assistance Module (Lion Kimbro) _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss at python.org http://mail.python.org/mailman/listinfo/tkinter-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From fresheris at gmail.com Fri Mar 2 13:21:14 2012 From: fresheris at gmail.com (fresher) Date: Fri, 2 Mar 2012 04:21:14 -0800 (PST) Subject: [Tkinter-discuss] [REQ] Tkinter programmer Message-ID: <1330690874270-4539479.post@n6.nabble.com> Hello. I am looking for somebody who could help me to do some tasks with Tkinter python programming? for sure $$ thanks. -- View this message in context: http://python.6.n6.nabble.com/REQ-Tkinter-programmer-tp4539479p4539479.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From Cameron at phaseit.net Fri Mar 2 14:09:20 2012 From: Cameron at phaseit.net (Cameron Laird) Date: Fri, 2 Mar 2012 13:09:20 +0000 Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <1330690874270-4539479.post@n6.nabble.com> References: <1330690874270-4539479.post@n6.nabble.com> Message-ID: <20120302130920.GA7519@lairds.us> On Fri, Mar 02, 2012 at 04:21:14AM -0800, fresher wrote: . . . > Hello. I am looking for somebody who could help me to do some tasks with > Tkinter python programming? for sure $$ . . . Several of us are in a position to help. Please say a few more words of description so we can judge what to propose to you. It's possible that your needs can be met with a (free!) explanation or two through the mailing list, OR you might want to engage one of us on a long-term consulting agreement, OR there is a whole range of possibilities between. From klappnase at web.de Fri Mar 2 21:23:53 2012 From: klappnase at web.de (Michael Lange) Date: Fri, 2 Mar 2012 21:23:53 +0100 Subject: [Tkinter-discuss] Text box reveal directory path? In-Reply-To: References: Message-ID: <20120302212353.3fbe2dce.klappnase@web.de> Hi Jason, Thus spoketh jason watkins unto us on Thu, 1 Mar 2012 21:35:55 +0000: > > Is it possible to create a text box that will reveal the full path of a > folder/file when that folder/file is dragged and dropped onto the text > box? I want it to function like terminal does on a Mac. Thanks for > any help, Jason Drag and drop with Tkinter is a little tricky. If you only need to handle DnD within your application you can try the Tkdnd module from Python's standard library. However, te above sounds like you want to drag from an external program, like a file manager? In this case you need the tkdnd extension to Tk from http://sourceforge.net/projects/tkdnd/ and the Python wrapper from http://klappnase.bubble.org/TkinterDnD2/index.html . With these your mileage may vary, on windows systems drags as well as drops have been reported to work, on unix systems only drops are supported and I myself have never managed to get it decently working at all, however some people reported success on linux and OSX too. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. "Life and death are seldom logical." "But attaining a desired goal always is." -- McCoy and Spock, "The Galileo Seven", stardate 2821.7 From lionkimbro at gmail.com Fri Mar 2 22:38:23 2012 From: lionkimbro at gmail.com (Lion Kimbro) Date: Fri, 2 Mar 2012 13:38:23 -0800 Subject: [Tkinter-discuss] Tkinter-discuss Digest, Vol 96, Issue 13 In-Reply-To: <45342aaa-286d-61b8-ca60-9e28a2d4df6d@me.com> References: <45342aaa-286d-61b8-ca60-9e28a2d4df6d@me.com> Message-ID: Great! Thank you Guido. I've created a document that anyone who is interested can edit, so that we can lay out the basics of the project. https://docs.google.com/document/d/1TCANkeaBYs_W7Sg9J1ce8Y1X4G6UR1PT3H-iMIuuNFY/edit For the time being, I have set the permissions very low, so that anyone can edit it. Spammers may force me to change that, but it should be fine for at least a week or two at least. I've laid out these basic goals: - Create a github repository for the project. - Create a dream specification for the project. Imagine that we had the software already, and that we are writing the documentation for it. What?s the software like? What function calls are there? What does the GUI look like? - Share our function libraries, pour through them, find the treasures within them, and pool them together into something that we like. - Get to know each other both in code and out of code. Hear each others? voice at least once. - Create a web presence for the project, and find people who should know about the project. Tell them about it. I look forward to getting to know more about you! If you'd like to set up the github repository, or if you would like to make some suggestions, or if you'd like to start writing out what you would like the API to look like -- or if you have some ideas or observations -- by all means, please do it, share it, whatever..! We need a mailing list as well; If you create that, that'd be great. Alternatively, I'll create it within a week. On Fri, Mar 2, 2012 at 3:17 AM, Guido R. C Guerrero wrote: > Lion; > > I'll very happy to help you. I use Python as my main developing language, > and use Tkinter as my gui interface, so, having something that makes things > easier and faster will be great. > > Guido Carballo > > On Feb 22, 2012, at 08:00 AM, tkinter-discuss-request at python.org wrote: > > Send Tkinter-discuss mailing list submissions to > tkinter-discuss at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/tkinter-discuss > or, via email, send a message with subject or body 'help' to > tkinter-discuss-request at python.org > > You can reach the person managing the list at > tkinter-discuss-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tkinter-discuss digest..." > Today's Topics: > > 1. Re: General Tkinter Assistance Module (python at bdurham.com) > 2. Re: General Tkinter Assistance Module (Lion Kimbro) > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ambed at inbox.lv Sun Mar 4 08:38:17 2012 From: ambed at inbox.lv (ed(LV)) Date: Sat, 3 Mar 2012 23:38:17 -0800 (PST) Subject: [Tkinter-discuss] Tkinter variable sharing from function to function Message-ID: <1330846697009-4544506.post@n6.nabble.com> *Hello! Im beginner at Tkinter and this is my 1st project. I want make programm that calculate resistor value from colors, but i can`t get variables out of functions. Here you can see all code:* #fails 251.py import Tkinter as tk from Tkinter import * import math root=tk.Tk() root.title("rezistoru aprekins") w= tk.Canvas(root, width=700, height=550, bg="#abc") w.pack() linija = w.create_line(10, 100, 375, 100, width='10',fill='black') linija = w.create_line(100, 50, 100, 150, width='50',fill='#FFCC99') linija = w.create_line(300, 50, 300, 150, width='50',fill='#FFCC99') linija = w.create_line(75, 100, 300, 100, width='80',fill='#FFCC99') linija = w.create_line(110, 50, 110, 150, width='15',fill='red') linija = w.create_line(150, 60, 150, 140, width='15',fill='red') linija = w.create_line(180, 60, 180, 140, width='15',fill='red') linija = w.create_line(260, 60, 260, 140, width='15',fill='red') linija = w.create_line(30, 190, 110, 155, width='1',fill='black') linija = w.create_line(150, 148, 200, 190, width='1',fill='black') linija = w.create_line(180, 145, 350, 190, width='1',fill='black') linija = w.create_line(260, 145, 500, 190, width='1',fill='black') #x1=tk.IntVar() #x2=tk.IntVar() def fun2(): linija = w.create_line(110, 50, 110, 150, width='15',fill='black') x=00 w.itemconfig(t2,text=x) def fun3(): linija = w.create_line(110, 50, 110, 150, width='15',fill='brown') x=10 w.itemconfig(t2,text=x) def fun4(): linija = w.create_line(110, 50, 110, 150, width='15',fill='red') x=20 w.itemconfig(t2,text=x) def fun5(): linija = w.create_line(110, 50, 110, 150, width='15',fill='orange') x=30 w.itemconfig(t2,text=x) def fun6(): linija = w.create_line(110, 50, 110, 150, width='15',fill='yellow') x=40 w.itemconfig(t2,text=x) def fun7(): linija = w.create_line(110, 50, 110, 150, width='15',fill='green') x=50 w.itemconfig(t2,text=x) def fun8(): linija = w.create_line(110, 50, 110, 150, width='15',fill='blue') x=60 w.itemconfig(t2,text=x) def fun9(): linija = w.create_line(110, 50, 110, 150, width='15',fill='purple') x=70 w.itemconfig(t2,text=x) def fun10(): linija = w.create_line(110, 50, 110, 150, width='15',fill='gray') x=80 w.itemconfig(t2,text=x) def fun11(): linija = w.create_line(110, 50, 110, 150, width='15',fill='white') x=90 w.itemconfig(t2,text=x) def fun21(): linija = w.create_line(150, 60, 150, 140, width='15',fill='black') x1=00 w.itemconfig(t3,text=x1) def fun31(): linija = w.create_line(150, 60, 150, 140, width='15',fill='brown') x1=1 w.itemconfig(t3,text=x1) def fun41(): linija = w.create_line(150, 60, 150, 140, width='15',fill='red') x1=2 w.itemconfig(t3,text=x1) def fun51(): linija = w.create_line(150, 60, 150, 140, width='15',fill='orange') x1=3 w.itemconfig(t3,text=x1) def fun61(): linija = w.create_line(150, 60, 150, 140, width='15',fill='yellow') x1=4 w.itemconfig(t3,text=x1) def fun71(): linija = w.create_line(150, 60, 150, 140, width='15',fill='green') x1=5 w.itemconfig(t3,text=x1) def fun81(): linija = w.create_line(150, 60, 150, 140, width='15',fill='blue') x1=6 w.itemconfig(t3,text=x1) def fun91(): linija = w.create_line(150, 60, 150, 140, width='15',fill='purple') x1=7 w.itemconfig(t3,text=x1) def fun101(): linija = w.create_line(150, 60, 150, 140, width='15',fill='gray') x1=8 w.itemconfig(t3,text=x1) def fun111(): linija = w.create_line(150, 60, 150, 140, width='15',fill='white') x1=9 w.itemconfig(t3,text=x1) #3linija def fun22(): linija = w.create_line(180, 60, 180, 140, width='15',fill='black') x2=1 w.itemconfig(t4,text=x2) def fun32(): linija = w.create_line(180, 60, 180, 140, width='15',fill='brown') x2=10 w.itemconfig(t4,text=x2) def fun42(): linija = w.create_line(180, 60, 180, 140, width='15',fill='red') x2=100 w.itemconfig(t4,text=x2) def fun52(): linija = w.create_line(180, 60, 180, 140, width='15',fill='orange') x2=1000 w.itemconfig(t4,text=x2) def fun62(): linija = w.create_line(180, 60, 180, 140, width='15',fill='yellow') x2=10000 w.itemconfig(t4,text=x2) def fun72(): linija = w.create_line(180, 60, 180, 140, width='15',fill='green') x2=100000 w.itemconfig(t4,text=x2) def fun82(): linija = w.create_line(180, 60, 180, 140, width='15',fill='blue') x2=1000000 w.itemconfig(t4,text=x2) def fun92(): linija = w.create_line(180, 60, 180, 140, width='15',fill='purple') x2=10000000 w.itemconfig(t4,text=x2) def fun102(): linija = w.create_line(180, 60, 180, 140, width='15',fill='#EAC117') x2=0.01 w.itemconfig(t4,text=x2) def fun112(): linija = w.create_line(180, 60, 180, 140, width='15',fill='#C0C0C0') x2=0.1 w.itemconfig(t4,text=x2) #4linija def fun23(): linija = w.create_line(260, 60, 260, 140, width='15',fill='brown') x3=1 w.itemconfig(t5,text=x3) def fun33(): linija = w.create_line(260, 60, 260, 140, width='15',fill='red') x3=2 w.itemconfig(t5,text=x3) def fun43(): linija = w.create_line(260, 60, 260, 140, width='15',fill='#EAC117') x3=5 w.itemconfig(t5,text=x3) def fun53(): linija = w.create_line(260, 60, 260, 140, width='15',fill='#C0C0C0') x3=10 w.itemconfig(t5,text=x3) t1 = w.create_text(1, 200, text="first color: ",font="Courier 10 bold ", fill ="black",anchor='w') b1=tk.Button(root, text="black ", command=fun2,width=8) b1.pack() b1.place(x=5 ,y=220) b2=tk.Button(root, text="brown", command=fun3,width=8) b2.pack() b2.place(x=5 ,y=250) b3=tk.Button(root, text="red ", command=fun4,width=8) b3.pack() b3.place(x=5 ,y=280) b4=tk.Button(root, text="orange", command=fun5,width=8) b4.pack() b4.place(x=5 ,y=310) b5=tk.Button(root, text="yellow", command=fun6,width=8) b5.pack() b5.place(x=5 ,y=340) b6=tk.Button(root, text="green", command=fun7,width=8) b6.pack() b6.place(x=5 ,y=370) b7=tk.Button(root, text="blue", command=fun8,width=8) b7.pack() b7.place(x=5 ,y=400) b8=tk.Button(root, text="purple", command=fun9,width=8) b8.pack() b8.place(x=5 ,y=430) b9=tk.Button(root, text="gray", command=fun10,width=8) b9.pack() b9.place(x=5 ,y=460) b10=tk.Button(root, text="white", command=fun11,width=8) b10.pack() b10.place(x=5 ,y=490) t11 = w.create_text(150, 200, text="second color: ",font="Courier 10 bold ", fill ="black",anchor='w') b11=tk.Button(root, text="black ", command=fun21,width=8) b11.pack() b11.place(x=150 ,y=220) b21=tk.Button(root, text="brown", command=fun31,width=8) b21.pack() b21.place(x=150 ,y=250) b31=tk.Button(root, text="red ", command=fun41,width=8) b31.pack() b31.place(x=150 ,y=280) b41=tk.Button(root, text="orange", command=fun51,width=8) b41.pack() b41.place(x=150 ,y=310) b51=tk.Button(root, text="yellow", command=fun61,width=8) b51.pack() b51.place(x=150 ,y=340) b61=tk.Button(root, text="green", command=fun71,width=8) b61.pack() b61.place(x=150 ,y=370) b71=tk.Button(root, text="blue", command=fun81,width=8) b71.pack() b71.place(x=150 ,y=400) b81=tk.Button(root, text="purple", command=fun91,width=8) b81.pack() b81.place(x=150 ,y=430) b91=tk.Button(root, text="gray", command=fun101,width=8) b91.pack() b91.place(x=150 ,y=460) b101=tk.Button(root, text="white", command=fun111,width=8) b101.pack() b101.place(x=150 ,y=490) t1 = w.create_text(300, 200, text="third color: ",font="Courier 10 bold ", fill ="black",anchor='w') b1=tk.Button(root, text="black ", command=fun22,width=8) b1.pack() b1.place(x=300 ,y=220) b2=tk.Button(root, text="brown", command=fun32,width=8) b2.pack() b2.place(x=300 ,y=250) b3=tk.Button(root, text="red ", command=fun42,width=8) b3.pack() b3.place(x=300 ,y=280) b4=tk.Button(root, text="orange", command=fun52,width=8) b4.pack() b4.place(x=300 ,y=310) b5=tk.Button(root, text="yellow", command=fun62,width=8) b5.pack() b5.place(x=300 ,y=340) b6=tk.Button(root, text="green", command=fun72,width=8) b6.pack() b6.place(x=300 ,y=370) b7=tk.Button(root, text="blue", command=fun82,width=8) b7.pack() b7.place(x=300 ,y=400) b8=tk.Button(root, text="purple", command=fun92,width=8) b8.pack() b8.place(x=300 ,y=430) b9=tk.Button(root, text="gold", command=fun102,width=8) b9.pack() b9.place(x=300 ,y=460) b10=tk.Button(root, text="silver", command=fun112,width=8) b10.pack() b10.place(x=300 ,y=490) t1 = w.create_text(450, 200, text="fourth color: ",font="Courier 10 bold ", fill ="black",anchor='w') b2=tk.Button(root, text="brown", command=fun23,width=8) b2.pack() b2.place(x=450 ,y=220) b3=tk.Button(root, text="red ", command=fun33,width=8) b3.pack() b3.place(x=450 ,y=250) b11=tk.Button(root, text="gold", command=fun43,width=8) b11.pack() b11.place(x=450 ,y=280) b12=tk.Button(root, text="silver", command=fun53,width=8) b12.pack() b12.place(x=450 ,y=310) t2=w.create_text(500, 20, text=" 44 ") t3=w.create_text(500, 50, text=" 55 ") t4=w.create_text(500, 80, text=" 66 ") t5=w.create_text(500, 110, text=" 77 ") t6=w.create_text(500, 140, text=" 88 ") def funf(): z=(x+x1)*x2 w.itemconfig(t6,text=z) bfin=tk.Button(root, text="CALCULATE", command=funf,font="24") bfin.pack() bfin.place(x=400 ,y=500) w.mainloop() *The main problem is that I can`t read variables x, x1, x2 on button "CALCULATE" press. Thank you for support!* -- View this message in context: http://python.6.n6.nabble.com/Tkinter-variable-sharing-from-function-to-function-tp4544506p4544506.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From klappnase at web.de Sun Mar 4 13:42:42 2012 From: klappnase at web.de (Michael Lange) Date: Sun, 4 Mar 2012 13:42:42 +0100 Subject: [Tkinter-discuss] Tkinter variable sharing from function to function In-Reply-To: <1330846697009-4544506.post@n6.nabble.com> References: <1330846697009-4544506.post@n6.nabble.com> Message-ID: <20120304134242.9387f3f7.klappnase@web.de> Hi, Thus spoketh "ed(LV)" unto us on Sat, 3 Mar 2012 23:38:17 -0800 (PST): > *Hello! > Im beginner at Tkinter and this is my 1st project. > I want make programm that calculate resistor value from colors, but i > can`t get variables out of functions. > Here you can see all code:* > (...) > *The main problem is that I can`t read variables x, x1, x2 on button > "CALCULATE" press. > Thank you for support!* when I run you code I get each time I press The "Calculate" button the error message: Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__ return self.func(*args) File "test7.py", line 326, in funf z=(x+x1)*x2 NameError: global name 'x' is not defined which shows clearly what happens: the callback def funf(): z=(x+x1)*x2 w.itemconfig(t6,text=z) tries to use a variable "x" which is not defined in the function's namespace, which covers basically everything that is defined *globally* plus anything defined within the function's *local* namespace, which means in the body of the function itself. I set up a minimal example to illustrate the difference between a local and a global variable, I hope you see the point: ########### file test.py ################### from Tkinter import * root = Tk() x = 1 def func1(): x = 0 print 'value of x:', x def func2(): global x print 'value of x:', x def func3(): global x x += 2 print 'value of x:', x Button(text='Func 1', command=func1).pack() Button(text='Func 2', command=func2).pack() Button(text='Func 3', command=func3).pack() root.mainloop() ########################################### So possible solutions for your problem might be: * declare global variables in your functions ( I haven't properly investigated all of your code, but I guess you would probably have to declare globals in all of your button callbacks, which is most often considered to be bad practice, although it will work without problems if it is done carefully), or * use Tkinter variables , as it seems was one of your first tries. Then you can simply call something like var1.set(1) from within the function body. If you want to learn more about namespaces in Python and how they work, a good starting point is: http://www.freenetpages.co.uk/hp/alan.gauld/tutname.htm I hope this helps Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. One of the advantages of being a captain is being able to ask for advice without necessarily having to take it. -- Kirk, "Dagger of the Mind", stardate 2715.2 From ambed at inbox.lv Sun Mar 4 18:01:17 2012 From: ambed at inbox.lv (ed(LV)) Date: Sun, 4 Mar 2012 09:01:17 -0800 (PST) Subject: [Tkinter-discuss] Tkinter variable sharing from function to function In-Reply-To: <20120304134242.9387f3f7.klappnase@web.de> References: <1330846697009-4544506.post@n6.nabble.com> <20120304134242.9387f3f7.klappnase@web.de> Message-ID: <1330880477266-4545427.post@n6.nabble.com> Thank you for help and good samples! for each x x1 x2 x3 I definate them global and now Its working. Thank you! -- View this message in context: http://python.6.n6.nabble.com/Tkinter-variable-sharing-from-function-to-function-tp4544506p4545427.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From fresheris at gmail.com Sun Mar 4 18:51:06 2012 From: fresheris at gmail.com (fresher) Date: Sun, 4 Mar 2012 09:51:06 -0800 (PST) Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <20120302130920.GA7519@lairds.us> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> Message-ID: <1330883466141-4545517.post@n6.nabble.com> the first task is to build working calculator like this: http://python.6.n6.nabble.com/file/n4545517/skaiciavke.png later Ill have more tasks to build forms like this http://python.6.n6.nabble.com/file/n4545517/MLDataAnalyzer5.png I cant aford much, even the projects are not very difficult for those who know what to do :) -- View this message in context: http://python.6.n6.nabble.com/REQ-Tkinter-programmer-tp4539479p4545517.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From bryan.oakley at gmail.com Sun Mar 4 19:01:26 2012 From: bryan.oakley at gmail.com (Bryan Oakley) Date: Sun, 4 Mar 2012 12:01:26 -0600 Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <1330883466141-4545517.post@n6.nabble.com> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> Message-ID: On Sun, Mar 4, 2012 at 11:51 AM, fresher wrote: > the first task is to build working calculator like this: > > http://python.6.n6.nabble.com/file/n4545517/skaiciavke.png > > later Ill have more tasks to build forms like this > > http://python.6.n6.nabble.com/file/n4545517/MLDataAnalyzer5.png > > > I cant aford much, even the projects are not very difficult for those who > know what to do :) > > This looks suspiciously like you are asking us to do your homework. Is that what you are doing? I think even if you've never coded a GUI before in your life, you could do the calculator in a single day by following some examples on the net. A competent Tkinter programmer would probably need only a half hour or so to implement it, so it's hardly worth paying someone to do it. Even if you did pay someone for the other tasks, spending the day learning Tkinter fundamentals would put you in a better position to evaluate the code someone else provides to you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fresheris at gmail.com Sun Mar 4 19:27:45 2012 From: fresheris at gmail.com (fresher) Date: Sun, 4 Mar 2012 10:27:45 -0800 (PST) Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> Message-ID: <1330885665339-4545580.post@n6.nabble.com> 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. -- View this message in context: http://python.6.n6.nabble.com/REQ-Tkinter-programmer-tp4539479p4545580.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From msa01 at bitflipper.ca Mon Mar 5 02:02:37 2012 From: msa01 at bitflipper.ca (Cam Farnell) Date: Sun, 04 Mar 2012 21:02:37 -0400 Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <1330885665339-4545580.post@n6.nabble.com> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> <1330885665339-4545580.post@n6.nabble.com> Message-ID: <4F5410AD.4070505@bitflipper.ca> 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. > > From fresheris at gmail.com Mon Mar 5 12:54:42 2012 From: fresheris at gmail.com (fresher) Date: Mon, 5 Mar 2012 03:54:42 -0800 (PST) Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <4F5410AD.4070505@bitflipper.ca> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> <1330885665339-4545580.post@n6.nabble.com> <4F5410AD.4070505@bitflipper.ca> Message-ID: <1330948482435-4547512.post@n6.nabble.com> STFU -- View this message in context: http://python.6.n6.nabble.com/REQ-Tkinter-programmer-tp4539479p4547512.html Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From kw at codebykevin.com Mon Mar 5 13:38:11 2012 From: kw at codebykevin.com (Kevin Walzer) Date: Mon, 05 Mar 2012 07:38:11 -0500 Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <1330948482435-4547512.post@n6.nabble.com> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> <1330885665339-4545580.post@n6.nabble.com> <4F5410AD.4070505@bitflipper.ca> <1330948482435-4547512.post@n6.nabble.com> Message-ID: <4F54B3B3.1070005@codebykevin.com> On 3/5/12 6:54 AM, fresher wrote: > STFU > It appears the tone of the discussion is deteriorating rapidly here. fresher, the purpose of this mailing list is to provide discussion and assistance in solving problems related to the Tkinter GUI toolkit and the Python programming language. List members are willing to provide advice and guidance to inexperienced developers, at no cost. The goal is to help inexperienced developers improve and thus further the development of applications in Python and Tkinter. Offering to hire someone to do your work for you short-circuits that learning process on your end, and (as you've indicated) will likely provide inadequate compensation to the person you're trying to hire. This list really isn't the place to contract for that kind of project. If you're absolutely stuck on where to start on your first project, try Googling for "tkinter calculator." This turned up several hits for me. Finding some basic open-source code to look at will put you several steps ahead of starting from scratch, and you may learn something in the process. As for the second project you are offering, it is impossible to tell from the screenshot you posted exactly what is involved. If you are dead-set on hiring someone to do your work for you, then you may have more luck at one of the freelance coding sites (Guru, rent-a-coder, etc.). --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com From Cameron at phaseit.net Mon Mar 5 19:15:48 2012 From: Cameron at phaseit.net (Cameron Laird) Date: Mon, 5 Mar 2012 18:15:48 +0000 Subject: [Tkinter-discuss] [REQ] Tkinter programmer In-Reply-To: <4F54B3B3.1070005@codebykevin.com> References: <1330690874270-4539479.post@n6.nabble.com> <20120302130920.GA7519@lairds.us> <1330883466141-4545517.post@n6.nabble.com> <1330885665339-4545580.post@n6.nabble.com> <4F5410AD.4070505@bitflipper.ca> <1330948482435-4547512.post@n6.nabble.com> <4F54B3B3.1070005@codebykevin.com> Message-ID: <20120305181548.GA23772@lairds.us> On Mon, Mar 05, 2012 at 07:38:11AM -0500, Kevin Walzer wrote: . . . > It appears the tone of the discussion is deteriorating rapidly here. > > fresher, the purpose of this mailing list is to provide discussion and > assistance in solving problems related to the Tkinter GUI toolkit and > the Python programming language. List members are willing to provide > advice and guidance to inexperienced developers, at no cost. The goal is > to help inexperienced developers improve and thus further the > development of applications in Python and Tkinter. > > Offering to hire someone to do your work for you short-circuits that > learning process on your end, and (as you've indicated) will likely > provide inadequate compensation to the person you're trying to hire. > This list really isn't the place to contract for that kind of project. > > If you're absolutely stuck on where to start on your first project, try > Googling for "tkinter calculator." This turned up several hits for me. > Finding some basic open-source code to look at will put you several > steps ahead of starting from scratch, and you may learn something in the > process. As for the second project you are offering, it is impossible to > tell from the screenshot you posted exactly what is involved. > > If you are dead-set on hiring someone to do your work for you, then you > may have more luck at one of the freelance coding sites (Guru, > rent-a-coder, etc.). . . . Well-written, Kevin; thank you. I have a few personal observations: 1. Commercial language--a solicitation for paid work, for instance--*is* welcome on this Tkinter mailing list. I say so, and I'm moderator of the list. I can think of no examples where such a solicita- tion has led directly to a paid engagement. Generally the helpful people here "give it away" and supply the heart of a solution for free. It's certainly possible to imagine a different outcome in the future, though. I'm even more certain that commercial discussions have invariably led to learning, generally on the part of several of us. Learning about Tkinter and what impacts it is right in the center of the mailing list's charter. 2. Is there someone who can help me better understand "... the freelance coding sites (Guru, rent-a-coder, etc.)"? Kevin's advice is appropriate, of course; but how can those places possibly have "happy endings"? In the case at hand, I *know* that this mailing list has participants who are more courteous, knowledgeable, business-like, and honorable than the rent-a-coders (etc.) appear to be. Is there some sort of transactional-intermediation magic going on that results in success for rent-a-coder? From bob at passcal.nmt.edu Tue Mar 6 17:46:09 2012 From: bob at passcal.nmt.edu (Bob Greschke) Date: Tue, 6 Mar 2012 09:46:09 -0700 Subject: [Tkinter-discuss] Tk*Font question In-Reply-To: References: Message-ID: <95E35FBF-EF47-4480-BCC0-8EA01BE20F1E@passcal.nmt.edu> On Feb 29, 2012, at 17:06, Bryan Oakley wrote: > > > On Wednesday, February 29, 2012, Bob Greschke wrote: > What's the correct way to change the font size? The "Change" button isn't doing what I thought it would. The font changes size, but turns into some proportional font. I'm kinda new (1 day) to using TkFixedFont and its friends. I'm used to ("Monoco", 9) sort of stuff and I'm not sure I understand what's going on. > > The best way is to use a named font. With that you can do 'myfont.configure(size=new_size)'. Then, every widget that uses that font will automatically see the change. > > For more information see http://www.pythonware.com/library/tkinter/introduction/x444-fonts.htm > > Named fonts are one of the true gems of tk. They have been part of the toolkit for probably a decade or more, and still to the best of my knowledge no popular toolkit has anything as powerful and easy to use. Thanks Bryan. That was the kick-in-the-pants that I needed to Do The Right Thing. It looks like it's going to work out quite well. Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From python at bdurham.com Sun Mar 11 22:10:05 2012 From: python at bdurham.com (python at bdurham.com) Date: Sun, 11 Mar 2012 17:10:05 -0400 Subject: [Tkinter-discuss] General Tkinter Assistance Module In-Reply-To: References: <1329831124.17260.140661039341089@webmail.messagingengine.com> Message-ID: <1331500205.27618.140661047783241@webmail.messagingengine.com> Hi Lion, Read your spec on google-docs [1], saw my name mentioned as a slacker, and felt obligated to contribute to the discussion. > specific functions that you think would be valuable Here's what I've been frustrated trying to create with Tkinter/ttk: Framework level enhancements - simple jquery-like smooth animation effects for moving widgets into position - a diagnostic tool like wxPython's WIT (widget inspector tool) [2] - ellipsis generator for "Text is too long to ..." Widget specific - jquery-like collapsible containers with smoothly animated collapse/expansion - simpler interface for creating scrollable frames - a simpler interface for creating color coded markup rules for Text controls - modern looking, ttk based, locale-aware, calendar/datepicker - masked input Entry widgets - locale-aware (numeric, date, time) Entry widgets - an autocomplete Entry widget - listbox that allows drag-and-drop repositioning of rows - ttk tree/grid control that allows drag-and-drop repositioning of nodes/cells/rows - a property-editor like widget Malcolm [1] https://docs.google.com/a/intricity.com/document/d/1TCANkeaBYs_W7 Sg9J1ce8Y1X4G6UR1PT3H-iMIuuNFY/edit?pli=1 [2] http://wiki.wxpython.org/Widget%20Inspection%20Tool -------------- next part -------------- An HTML attachment was scrubbed... URL: From lionkimbro at gmail.com Wed Mar 14 20:27:48 2012 From: lionkimbro at gmail.com (Lion Kimbro) Date: Wed, 14 Mar 2012 12:27:48 -0700 Subject: [Tkinter-discuss] General Tkinter Assistance Module In-Reply-To: <1331500205.27618.140661047783241@webmail.messagingengine.com> References: <1329831124.17260.140661039341089@webmail.messagingengine.com> <1331500205.27618.140661047783241@webmail.messagingengine.com> Message-ID: Heh heh heh ;) Right now, everything is on the table. If several people perceive a need where I do not, I am happy to move along with the several people. I also have ideas though. Here's my rankings of what you wrote, on a four star basis: inspection (****): - a diagnostic tool like wxPython's WIT (widget inspector tool) [2] support (***): - ellipsis generator for "Text is too long to ..." - simpler interface for creating scrollable frames - a simpler interface for creating color coded markup rules for Text controls widgets (**): - masked input Entry widgets - modern looking, ttk based, locale-aware, calendar/datepicker - locale-aware (numeric, date, time) Entry widgets - an autocomplete Entry widget - listbox that allows drag-and-drop repositioning of rows - ttk tree/grid control that allows drag-and-drop repositioning of nodes/cells/rows - a property-editor like widget animation (*): - simple jquery-like smooth animation effects for moving widgets into position - jquery-like collapsible containers with smoothly animated collapse/expansion (I'm not even sure that the animation effects are *possible,* without using "place" primarily, or otherwise seriously overhauling the layout system. Wouldn't those be more appropriate to their own module -- "tkanimate" perhaps?) I see this module as primarily a support system for people who are working with the tkinter system, rather than as a widget library. (Of which, ... Aren't there several widget libraries out there already? Though I am not familiar with what their capabilities are.) So for example, things like inspection tools, (to see: "What's already in the system?"), variable retrieval tools (I have a function "svar" which gives a StringVar given a widget that makes use of 1 or 2 X-Vars,) workaround to the .bind/.unbind bug. I must confess -- I have a lot of radical tkinter ideas. For example, I have in my collection of projects implemented an ASCII->tkinter renderer. You draw an ASCII image of the tkinter GUI that you want, with "(button-label)" for buttons, "[] check-label" for checkboxes, drawings of canvas and image frames with "+-----+" type ascii boxes and on and on. It works. And I've written microlanguages for scripting Canvas drawing, and for binding events to functions, and scripting complex interaction sequences. Alternative and compact notations for widget creation. But these ideas are all too radical for tkhelp. For tkhelp, I want to focus on the basics: I can look at widgets, I can bind and unbind, I can find widgets in the hierarchy by name, etc., etc.,. (For more radical ideas: Another module, later, maybe.) If there isn't already a module of widgets, though, there really should be one. I'd be happy to curate "tkwidgets" (or something similar.) But I was under the impression that something like that already exists? In fact, several somethings like that? "PMW" mega-widgets comes to mind. Aren't there at least one or two others? As for the ellipses, and support for scrolling frames creation -- I think that should go into tkhelp. Because they are so common, because they aren't widgets, because it can be tricky, but isn't too tricky in the common case. Small useful things are great, and I'd like them in tkhelp. What do you think? And if I'm wrong about something, or am missing something obvious or important, please let me know. On Sun, Mar 11, 2012 at 2:10 PM, wrote: > Hi Lion, > > Read your spec on google-docs [1], saw my name mentioned as a slacker, > and felt obligated to contribute to the discussion. > > > specific functions that you think would be valuable > > Here's what I've been frustrated trying to create with Tkinter/ttk: > > Framework level enhancements > - simple jquery-like smooth animation effects for moving widgets into > position > - a diagnostic tool like wxPython's WIT (widget inspector tool) [2] > - ellipsis generator for "Text is too long to ..." > > Widget specific > - jquery-like collapsible containers with smoothly animated > collapse/expansion > - simpler interface for creating scrollable frames > - a simpler interface for creating color coded markup rules for Text > controls > - modern looking, ttk based, locale-aware, calendar/datepicker > - masked input Entry widgets > - locale-aware (numeric, date, time) Entry widgets > - an autocomplete Entry widget > - listbox that allows drag-and-drop repositioning of rows > - ttk tree/grid control that allows drag-and-drop repositioning of > nodes/cells/rows > - a property-editor like widget > > Malcolm > > [1] > https://docs.google.com/a/intricity.com/document/d/1TCANkeaBYs_W7Sg9J1ce8Y1X4G6UR1PT3H-iMIuuNFY/edit?pli=1 > [2] http://wiki.wxpython.org/Widget%20Inspection%20Tool > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: