askstring Window to the top under Windows

jim-on-linux inq1ltd at verizon.net
Wed Mar 7 17:54:05 CET 2007


On Wednesday 07 March 2007 05:02, Ingo Wolf wrote:
> -------- Original-Nachricht --------
> Datum: Tue, 06 Mar 2007 20:49:42 -0500
> Von: jim-on-linux <inq1ltd at verizon.net>
> An: python-list at python.org
> CC: "iwl" <Ingo.Wolf at gmx.de>
> Betreff: Re: askstring Window to the top under
> Windows
>
> > By default
> > tk will open a root window.
> > so you will have to create
> > something to put into the
> > root window.
> > I suggest a button to open the tkSimpleDialog
> > box.
> >
> > go to;
> >
> > http://www.pythonware.com/library/tkinter/int
> >roduction/
>
> I've allready had a short look trough this to
> find an idea how to change this behavior (which
> should be done by the askstring makers) but
> haven't up to now. I think what I do is what
> askstring was made for keeping me away from tk
> internals only wanting a little string input.
>
> Because I have embedded python In my C-App I
> make my own window now In C and extend python
> by it so having more control about things
> happen.


Check out how to use Entry Wiget
for data entry.

====

from Tkinter import *

root = Tk()  ## this is the default window
vlab = Label(root,   width = 20, 
                  text = 'Enter data here')
vlab.grid( row=0, column =0)

ventry= Entry(root, width = 30)
ventry.grid(row = 0, column = 1)
mainloop()

jim-on-linux
http:\\www.inqvista.com










More information about the Python-list mailing list