> What I want:
> - the simplest thing that could possibly work!
>
Have the program check for a file hidden somewhere on the computer.
For instance, if the file dummyfile.dll doesn't exist in the
windows/system32 folder the program just doesn't start. And when you
install the program on her compute
It's working, thank you very much :)
--
http://mail.python.org/mailman/listinfo/python-list
How do i make a child window "active" like the root window?
from Tkinter import *
def open_child():
c = Toplevel(root)
c.title("Child window")
c.geometry('200x160+230+130')
Label(c, text="Child window").grid()
root = Tk()
root.title("root window")
Button(root, text="Open child
I'm having problems replacing text in a
unicode string.
Here's the code:
# -*- coding: cp1252 -*-
titel = unicode("ä", "iso-8859-1")
print titel
print type(titel)
titel.replace("ä", "a")
When i run this program I get this error:
titel.replace("ä", "a")
UnicodeDecodeError: 'ascii' codec ca
I'm working on a program that is supposed to save
different information to text files.
Because the program is in swedish i have to use
unicode text for ÅÄÖ letters.
When I run the following testscript I get an error message.
# -*- coding: cp1252 -*-
titel = "åäö"
titel = unicode(titel)
print "
I have a problem with a program i'm
making in Tkinter.
The code is avaliable at:
http://paste.plone.org/943
When i'm running the program and enters a value and press the
button in the dialog window that comes up when a press the
button "Lägg till spelare" (add a player in swedish)
I get this error
Harlin Seritt wrote:
> You can add this:
>
> button = Button(top, text="Close Me", command=top.destroy)
> button.pack()
>
> That will kill the Toplevel window.
>
> Cheers,
>
> Harlin Seritt
Thank you, it worked great :)
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I'm creating a program in Tkinter and I would need
help to create a "close button" for dialog windows.
One of my typical dialog windows look like this:
def show_window(self):
top = Toplevel()
Label(top, text="Some text").pack()
Label(top, text="Some more text").pa
Hi !
I'm trying to create a graphical program using Tkinter.
The program is supposed to save a string the user defines
as a filename. I've made it work with the the first button
in the program that's named "Spara ett värde i en sträng till ett
filnamn", that's swedish for "Save a value in a string