Re: Read from an already open file (Python) Programming Software Development by richieking tk tk.... what about wx???? Re: SQL ,migration or export ? Programming Databases by eddysonys Tk's very much , pclfw! I will keep U posted with my evolution.It seems harder , the 2-nd option, but I'll start with this one. See U. Re: How to Count number of liens and Characters in a Tiff image .... Programming Software Development by samcaleb05 Tk u Frnd.... Can u say any Sample code project for that OCR to Segment the text in the image.... Tks in Adv.. G.Sam.... Re: extract one part of chain text Programming Software Development by juanjo-argentin tk's for all TONYJV!!!!!!!!!!!!! I'll put your example on march now. But I use .split and find its work see the example: [CODE]str = "100|1999|pepe|False|27-10651374-1|False|||05/09/1332|1|4||3||1|1|8|67||4|False|True|False|fdsfewía||||Femenino|0|0|0|0|0|0|2|"; print str.split('|')[4]; #this line print 5º item use | like separation … Re: Can't grab value from dynamically added form element Programming Web Development by Airshow tK, I'm in guesswork territory here......... I think I'm right in saying that [iCODE]$('img.faded').live('click', ...[/iCODE] and [iCODE]$('img.highlighted').live('click', ...[/iCODE] will only keep up with matching elements at the time they are inserted, not when their highlighted/faded classnames are changed. If so then the workaround would … Re: Can't grab value from dynamically added form element Programming Web Development by Airshow tK, OK, I understand a bit more now. You are sort of right in saying that .live() just works for events, in that .live() is a variant of .bind() which (in simple terms) attaches a handler (function) to an event. However when the event fires, the attached handler will then have access to all the target element's (this's) attributes, as was … Re: Customizing Tkinter Window Programming Software Development by snippsat Tk GUIs don't look and behave like a native application, which affects the "look & feel" in multiple small ways, which make a complex app feel weird and clunky compared to native apps on given system. So Tkinter will not look god on windows. For more better looking GUI look into wxpython,PyQt(pyside),PyGTK. Re: Hi all Community Center Say Hello! by advent_geek @tk-hassan welcome to daniweb. xD Re: Multiple window using Perl TK Programming Software Development by wickedxter [code] #!/usr/bin/perl -w use Tk; use strict; my $mw = MainWindow->new; fill_window($mw, 'Main'); my $top1 = $mw->Toplevel; fill_window($top1, 'First top-level'); my $top2 = $mw->Toplevel; fill_window($top2, 'Second top-level'); MainLoop; sub fill_window { my ($window, $… Multiple window using Perl TK Programming Software Development by terrylau77 I've got a text file in this following format : Field Data 1 2 1 3 1 4 2 5 2 6 3 2 3 3 3 4 I would like to open separate windows for each of the field... meaning : window1 (for field1) will display 2,3,4 window2 (for field2) will display… cannot read the file content in perl/tk TEXT Programming Software Development by terranceyaul i know this is not a new question..but i try follow the solution working out from other post...but there are nothing to print out on my text area...if i directly print a sentence on my text file..it's work..why? #!/usr/local/bin/perl use Tk; use File::Tail; #Main Window my $mw = new MainWindow; $mw-> title ("… Reg : TCL Tk GUI Programming Software Development by msrikanth Hi Everyone, I need some help in Tcl Tk Gui Application Development. In that GUI i need 2 drop down lists 1) Subject : , so here a list of subjects will be present 2) Assignment : , So here depending upon the subject again a list of assignments related to that subject should be there After selecting both , based on the selection i need… Re: tk inter minesweeper reset/newgame function Programming Software Development by JasonHippy [QUOTE=G33KKitty;1120093]thats amazing thankyou would you explain to me what it means when you have said overridden? and the handler? kitty[/QUOTE] OK, I'm not sure whether I'm strictly using the correct terminology here, I'm also not 100% au fait with the tk library, but.... Basically components like the buttons in the tk library use … tk inter minesweeper reset/newgame function Programming Software Development by G33KKitty hey guys i have a very basic program but unfortunatly it does not recognise how many bombs are near it it just displays ok if there is no bomb. and if there is a bomb a message pops up saying bomb would you like to retry, If i press no it quits.. which is fine. how ever i want it to start a new game if i pressed yes. If this makes sense:) i … Re: tk inter minesweeper reset/newgame function Programming Software Development by JasonHippy How about this?? This will cause the game board to be reset/redrawn when the user selects 'yes'. [CODE] import Tkinter as tk import tkMessageBox from Tkinter import * import sys class BoardGame: under_vals = [ '0', '1', '1', '0', '1', '0', '1', '0', '0', '0', '1', '1', ] disp_vals = [ '',… Re: tk inter minesweeper reset/newgame function Programming Software Development by JasonHippy OK, using your previous code as a base, I've modified it slightly and come up with something which does more or less exactly what you wanted. As you'll see I've moved some of your code around and created an extra class (GameSquare) which is used by each square on the board. When the game is initialised, it uses the arrays you set up (… TK pack to Slow to keep up Programming Software Development by kingofkya near the bottom of the code you see print statements there. The code executes fine however if they are removed the application locks until the operations finishes. It dos not destroy or add the appropriate widgets until it is completely done. Effectively defeating the purpose of changing them in the first place. [CODE] def close… Re: Tk logo on GUI window: Programming Software Development by mattyd [quote=Ene Uran;284697]Yes you can change the icon to anything you have: [php]from Tkinter import * form1 = Tk() # use an icon file you have in the working folder form1.wm_iconbitmap('py.ico') form1.wm_title('Title') form1.mainloop() [/php]You could create an icon that blends in with the title color, using something like LiquidIcon from [URL="… Tk logo on GUI window: Programming Software Development by mattyd Located in the upper, left-hand corner of the GUI window is a small "[COLOR=red][B][I]Tk [/I][/B][/COLOR]"; is it possible to get rid of this entirely? It is only a small detail, but a detail none-the-less that I wish to have control over in regards to the final product. I would also love to be able to change the color\ theme of the … Re: Tk logo on GUI window: Programming Software Development by Ene Uran Yes you can change the icon to anything you have: [php]from Tkinter import * form1 = Tk() # use an icon file you have in the working folder form1.wm_iconbitmap('py.ico') form1.wm_title('Title') form1.mainloop() [/php]You could create an icon that blends in with the title color, using something like LiquidIcon from [url]www.x2studios.com[/url… Re: Tk logo on GUI window: Programming Software Development by mattyd [quote=Ene Uran;284697]Yes you can change the icon to anything you have: [php]from Tkinter import * form1 = Tk() # use an icon file you have in the working folder form1.wm_iconbitmap('py.ico') form1.wm_title('Title') form1.mainloop() [/php]You could create an icon that blends in with the title color, using something like LiquidIcon from [URL="… tk scale widget: why does higher resolution reset start value? Programming by mnh001 Hi, I'm having trouble with a tk scale widget. So far no one at the python forum has an answer so I found this site. As long as the resolution is set to 1, the start value can be anything I want but as soon as I set the resolution any higher it changes the start value. Ex: I have from_=3 for a start parameter. Here's what I … Re: tk() Programming Software Development by vegaseat Here I used a basic Tkinter class template to test your method createEight(self) and gave the button a command ... [code]# Tkinter class template to test apps try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk class MyApp(tk.Tk): def __init__(self): tk.Tk.__init__(self) self.… Re: tk() Programming Software Development by TrustyTony Nice. The feed pack of second click is however missing so let's demonstrate the after effect with your receipt of lambda to hide the constant parameter. [CODE] # Tkinter class template to test apps try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk class MyApp(tk.Tk): def __init__(self):… Re: tk() Programming Software Development by TrustyTony Check out this code which does 8 buttons and handles them in one function. Any help? [CODE] #!/usr/local/bin/Python import Tkinter def doButton(buttonName): global but print buttonName class SimpleCallback: def __init__(self, callback, *firstArgs): self.__callback = callback self.__firstArgs = firstArgs def … Re: Tk Button Click Response Programming Software Development by vegaseat The argument 'event' is the event that called your function. In your case it would be a mouse-click. You could retrieve the mouse pointer position coordinates from the event ... [code=python]import Tkinter as tk def click(event): """display the click coordinates""" str1 = 'x=', event.x, 'y=', event.y … Re: TK Tic Tac Toe Programming Software Development by Darkangelchick Hey again guys, thanks fort he previous help. So far in TK i have made a frame and labels I have it displaying what I have in the labels properly. How can I make it so I can get the actual game inside the frame?? [CODE]# import all the Tkinter methods from Tkinter import * # create a window frame frame1 = Tk() # create a label … Re: Tk Button Click Response Programming Software Development by vegaseat Binding the mouse button to a particular function will do it ... [code=python]from Tkinter import * def left(event): root.title('clicked left') btn1.config(fg='blue') def right(event): root.title('clicked right') btn1.config(fg='red') root = Tk() root.title('click left or right on button') btn1 = Button(root,… Re: TK Tic Tac Toe Programming Software Development by Darkangelchick Ok guys here is a version I have got, but it's just text based. Will having this make trying to make a TK one any easier? [CODE] def instructions(): print """\n\tWelcome to the game of tic-tac-toe\n Have fun with this game against the computer. Enter the number of the square in which you wish to move. Press enter… Re: TK Tic Tac Toe Programming Software Development by woooee If you are looking for alternating colors in a checkerboard fashion, use bg & fg + the color. You might also want to check the canvas widget. It may be overkill though [url]http://infohost.nmt.edu/tcc/help/pubs/tkinter/create_rectangle.html[/url][CODE]# import all the Tkinter methods from Tkinter import * # create a window frame …