Re: Controlling who can run an executable

2005-10-03 Thread Svennglenn
> 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

Re: Make Tkinter child window active

2005-06-08 Thread Svennglenn
It's working, thank you very much :) -- http://mail.python.org/mailman/listinfo/python-list

Make Tkinter child window active

2005-06-08 Thread Svennglenn
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

replace text in unicode string

2005-05-14 Thread Svennglenn
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

Trouble saving unicode text to file

2005-05-07 Thread Svennglenn
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 "

Problem with variabels in Tkinter

2005-03-04 Thread Svennglenn
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

Re: Closing dialog window in Tkinter

2005-03-02 Thread Svennglenn
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

Closing dialog window in Tkinter

2005-03-01 Thread Svennglenn
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

Problems programming with Tkinter

2005-01-02 Thread Svennglenn
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