Re: Tkinter --> Why multiple windows

2016-03-25 Thread kevind0718
On Thursday, March 24, 2016 at 9:24:44 PM UTC-4, Wildman wrote: > On Thu, 24 Mar 2016 13:24:16 -0700, kevind0718 wrote: > > > Hello: > > > > newbie Tkinter question > > > > If I run the code below two windows appear. > > One empty and one with the

Re: Tkinter --> Why multiple windows

2016-03-24 Thread kevind0718
On Thursday, March 24, 2016 at 4:29:03 PM UTC-4, Random832 wrote: > On Thu, Mar 24, 2016, at 16:24, kevind0...@gmail.com wrote: > > Hello: > > > > newbie Tkinter question > > > > If I run the code below two windows appear. > > One empty and one with the text box and button. > > The empty one is

Tkinter --> Why multiple windows

2016-03-24 Thread kevind0718
Hello: newbie Tkinter question If I run the code below two windows appear. One empty and one with the text box and button. Why? please KD from Tkinter import * class MyDialog: def __init__(self, parent): top = self.top = Toplevel(parent) Label(top, text="Value").pack(

Re: from a module return a class

2016-03-20 Thread kevind0718
On Thursday, March 17, 2016 at 12:19:39 PM UTC-4, kevin...@gmail.com wrote: > Hello: > > Working with python 2.7. > > I have a module promptUser_PWord that will prompt a user for their user name > and pword. Works fine stand alone. > I also have a module, genXLS that does a bunch of processing

from a module return a class

2016-03-20 Thread kevind0718
Hello: Working with python 2.7. I have a module promptUser_PWord that will prompt a user for their user name and pword. Works fine stand alone. I also have a module, genXLS that does a bunch of processing it has worked fine for months. And a class Unamepword define as follows: class Unamepwo

Re: from a module return a class

2016-03-19 Thread kevind0718
On Thursday, March 17, 2016 at 1:21:16 PM UTC-4, John Gordon wrote: > In > kevind0...@gmail.com writes: > > > ## prompt the user for a User name a& pWord > > user_pword = promptUser_PWord() > > > I get the error > > File "H:\dev\eclipse\workspace\genXls\src\genXls\promptUser_PWor

Re: from a module return a class

2016-03-19 Thread kevind0718
On Friday, March 18, 2016 at 12:16:13 PM UTC-4, John Gordon wrote: > In Wolfgang Maier > writes: > > > > So promptUser_PWord is a module? Well, I'm confused. You gave us this > > > bit of code: > > > > > > user_pword = promptUser_PWord() > > > > > > But that can't work if promptUser_PWor

Re: from a module return a class

2016-03-18 Thread kevind0718
On Thursday, March 17, 2016 at 4:59:32 PM UTC-4, Rick Johnson wrote: > On Thursday, March 17, 2016 at 1:24:10 PM UTC-5, Laurent Pointal wrote: > > So the error: SyntaxError: 'return' outside function > > My suspicion is the the OP misunderstands how modules work. He is assuming > that he can retu

Re: exit from Tkinter mainloop Python 2.7

2016-03-04 Thread kevind0718
Christian & Others: Thanks for your attention to this matter. My code now look like this: from Tkinter import * def butContinue(): dbUser = entryName.get() pWord = entryPWord.get() print dbUser print pWord root1.quit() dbUser = "" pWord = "" root1 = Tk() ##root1.geomet

exit from Tkinter mainloop Python 2.7

2016-02-23 Thread kevind0718
Hello: Newbie here. Spent the a good part of the day tinkering and reading tutorials, I was able to create a sample that is very close to my requirement. When I execute the code below the Dialog displayed as expected and I can enter data into the textboxes. All good. When I click on butGo I

setting the font of the root title

2016-02-23 Thread kevind0718
Hello: Newbee here. I need to change the font of the title of the root. Actually I just need it to be larger, which means I may need the top boarder to be larger. I wrote the bit of code below, hoping for the desired effect. Also googled around regarding the toplevel widget No luck. Your kind

create Email with multiple HTML blocks embedded

2016-01-05 Thread kevind0718
The below script will send an email with one HTML file embedded and the second attached. Not really what I need. I need a Python script to create an email that contains multiple blocks of HTML in the body of the email. There is a process that will create at least one HTML file but very often t