Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Meeran Rizvi wrote: > I just want to save it as a xls file and also from xls file i need to get > the data and display in a text box. > > Or either i just display the output in my text widget and also save it as > an xls file What exactly you want to do is up to you; just try your hands at it

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
t; > >> br = mechanize.Browser() > > >> br.set_handle_robots(False) > > >> br.open(url) > > >> br.select_form(name="x") > > >> br["q"] = str(new) > > >> res = br.submit() > > >&g

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
quot;] = str(new) > >> res = br.submit() > >> content = res.read() > >> with open("result1.xls", "w") as f: > >> f.write(content) > >> fun() > >> Go = Button(obj,text="GO",width=5,command=fun) > &

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
n(url) >> br.select_form(name="x") >> br["q"] = str(new) >> res = br.submit() >> content = res.read() >> with open("result1.xls", "w") as f: >> f.write(content) >> fun() >> Go = Button(obj,t

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find the > results from the browser and save the results as a xls file. > When i typed something in my search box and click the (GO)button.I

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
ntent = res.read() > with open("result1.xls", "w") as f: > f.write(content) > fun() > Go = Button(obj,text="GO",width=5,command=fun) > Label.pack() > search.pack() > Go.pack() > mainloop() > It is possible to display the output in my GUI itself? -- https://mail.python.org/mailman/listinfo/python-list

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Peter Otten wrote: > PS: You can verify that you understood this by answering the question: > what happens if the user hits the go-button while the second thread is > still running. Hint: as written the script does not handle this correctly. On second thought it's probably not as bad as I thought

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
Meeran Rizvi wrote: > On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: >> Hello Guys, >> Here i am creating a GUI which will act as a search engine that will find >> the results from the browser and save the results as a xls file. When i >> typed something in my search box

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Meeran Rizvi
On Monday, January 30, 2017 at 12:02:40 PM UTC+5:30, Meeran Rizvi wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find the > results from the browser and save the results as a xls file. > When i typed something in my search box and click the (GO)button.I

Re: Display a label while pressing the button in my GUI

2017-01-30 Thread Peter Otten
hmmeeranrizv...@gmail.com wrote: > Hello Guys, > Here i am creating a GUI which will act as a search engine that will find > the results from the browser and save the results as a xls file. When i > typed something in my search box and click the (GO)button.It should > display search in progress.wh

Display a label while pressing the button in my GUI

2017-01-29 Thread hmmeeranrizvi18
Hello Guys, Here i am creating a GUI which will act as a search engine that will find the results from the browser and save the results as a xls file. When i typed something in my search box and click the (GO)button.It should display search in progress.when the file is saved it should display don

Re: My gui

2013-04-24 Thread Chris Angelico
On Thu, Apr 25, 2013 at 3:08 AM, Daniel Kersgaard wrote: > import tkinter > import tkinter.messagebox > > class MyGui: > def _init_(self): > ... all code here > > poop = MyGui() As already mentioned, changing that to __init__ makes everything work (I just tested in Python 3.3 on Windows). But

Re: My gui

2013-04-24 Thread Terry Jan Reedy
On 4/24/2013 1:53 PM, Chris “Kwpolska” Warrick wrote: Please try fixing it and running it _outside of IDLE_, which is also built in Tk The default mode of Idle runs user code in a separate process. Editing tkinter code with Idle and running it (in the separate process) should be no problem.

Re: My gui

2013-04-24 Thread Neil Cerutti
On 2013-04-24, Arnaud Delobelle wrote: > His class is not a frame, it's just a container for the tkinter > code. It's a bit unusual but it looks correct to me (apart from > the single underscores in __init__() as spotted by Ned > Batchelder). I dunno if it makes any difference, but it's usual to

Re: My gui

2013-04-24 Thread Arnaud Delobelle
On 24 April 2013 18:53, Chris “Kwpolska” Warrick wrote: > On Wed, Apr 24, 2013 at 7:08 PM, Daniel Kersgaard > wrote: >> Today, being the last day of lectures at school, my instructor ran briefly >> through Tkninter and GUIs. I'd been looking forward to this particular >> lesson all semester, bu

Re: My gui

2013-04-24 Thread Ned Batchelder
On 4/24/2013 1:08 PM, Daniel Kersgaard wrote: Today, being the last day of lectures at school, my instructor ran briefly through Tkninter and GUIs. I'd been looking forward to this particular lesson all semester, but when I got home and copied a sample program from my textbook verbatim, IDLE

Re: My gui

2013-04-24 Thread Chris “Kwpolska” Warrick
On Wed, Apr 24, 2013 at 7:08 PM, Daniel Kersgaard wrote: > Today, being the last day of lectures at school, my instructor ran briefly > through Tkninter and GUIs. I'd been looking forward to this particular lesson > all semester, but when I got home and copied a sample program from my > textboo

Re: My gui

2013-04-24 Thread Dave Angel
On 04/24/2013 01:08 PM, Daniel Kersgaard wrote: Today, being the last day of lectures at school, my instructor ran briefly through Tkninter and GUIs. I'd been looking forward to this particular lesson all semester, but when I got home and copied a sample program from my textbook verbatim, IDLE

My gui

2013-04-24 Thread Daniel Kersgaard
Today, being the last day of lectures at school, my instructor ran briefly through Tkninter and GUIs. I'd been looking forward to this particular lesson all semester, but when I got home and copied a sample program from my textbook verbatim, IDLE does nothing. No error, no nothing. Any ideas? He

Re: How to set my gui?

2013-04-22 Thread Gene Heskett
On Friday 19 April 2013 22:16:18 Chris Angelico did opine: > On Sat, Apr 20, 2013 at 9:10 AM, Dennis Lee Bieber > > wrote: > > On Fri, 19 Apr 2013 09:24:36 +1000, Chris Angelico > > > > declaimed the following in gmane.comp.python.general: > >> On Fri, Apr 19, 2013 at 8:57 AM, Walter Hurry w

Re: How to set my gui?

2013-04-19 Thread Chris Angelico
On Sat, Apr 20, 2013 at 9:10 AM, Dennis Lee Bieber wrote: > On Fri, 19 Apr 2013 09:24:36 +1000, Chris Angelico > declaimed the following in gmane.comp.python.general: > >> On Fri, Apr 19, 2013 at 8:57 AM, Walter Hurry >> wrote: >> > On Fri, 19 Apr 2013 08:00:11 +1000, Chris Angelico wrote: >> >

Re: How to set my gui?

2013-04-19 Thread Tracubik
On 19/04/2013 10:42, Alister wrote: On Thu, 18 Apr 2013 23:24:29 +0200, Tracubik wrote: Hi all! I'm trying to make a simple program that essentially do this: 1) open a html file (extracted epub file) 2) search for occurrences like "ita-ly" 3) put them on a simple GUI: 1 text field and two butt

Re: How to set my gui?

2013-04-19 Thread Roland Koebler
Hi, > These days, GUI programming is to me just > programming and calling on certain libraries/modules. +1 > One thing you may want to consider is using your main thread for the > UI, and spinning off another thread to do your search. But do that > ONLY if you know you understand threads, and thr

Re: How to set my gui?

2013-04-19 Thread Alister
On Thu, 18 Apr 2013 23:24:29 +0200, Tracubik wrote: > Hi all! > I'm trying to make a simple program that essentially do this: > > 1) open a html file (extracted epub file) > 2) search for occurrences like "ita-ly" > 3) put them on a simple GUI: 1 text field and two buttons: keepy it and > correct

Re: How to set my gui?

2013-04-18 Thread Chris Angelico
On Fri, Apr 19, 2013 at 8:57 AM, Walter Hurry wrote: > On Fri, 19 Apr 2013 08:00:11 +1000, Chris Angelico wrote: > >> But 1 Corinthians 13:11 > > You are grown up now, I surmise. :) Born in 1984, so that'll give you some idea where I was in the 1990s. ChrisA -- http://mail.python.org/mailman/li

Re: How to set my gui?

2013-04-18 Thread Walter Hurry
On Fri, 19 Apr 2013 08:00:11 +1000, Chris Angelico wrote: > But 1 Corinthians 13:11 You are grown up now, I surmise. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to set my gui?

2013-04-18 Thread Chris Angelico
On Fri, Apr 19, 2013 at 7:36 AM, Tracubik wrote: > On 18/04/2013 23:27, John Gordon wrote: >> >> In <5170648d$0$1368$4fafb...@reader2.news.tin.it> Tracubik >> writes: >> >>> i suppose i've to first generate the window and than populate it, but >>> where i've to put the "search for occurences" cod

Re: How to set my gui?

2013-04-18 Thread Tracubik
On 18/04/2013 23:27, John Gordon wrote: In <5170648d$0$1368$4fafb...@reader2.news.tin.it> Tracubik writes: i suppose i've to first generate the window and than populate it, but where i've to put the "search for occurences" code? I don't think init() is the right place.. What GUI library are

Re: How to set my gui?

2013-04-18 Thread John Gordon
In <5170648d$0$1368$4fafb...@reader2.news.tin.it> Tracubik writes: > i suppose i've to first generate the window and than populate it, but > where i've to put the "search for occurences" code? I don't think init() > is the right place.. What GUI library are you using? -- John Gordon

How to set my gui?

2013-04-18 Thread Tracubik
Hi all! I'm trying to make a simple program that essentially do this: 1) open a html file (extracted epub file) 2) search for occurrences like "ita-ly" 3) put them on a simple GUI: 1 text field and two buttons: keepy it and correct it (i.e. it will become italy) now this is quite simple but ho