No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Dear Daniweb community; I am working on a Touchscreen application. For this work I need to Change the window if a user clicks on it. My code: def init(win): def getclick(event): parent.destroy() openSubWindow(dialog); frame = Frame(win, width=650, height=550) frame.bind("", getclick) frame.pack() win.title("Ausgangsposition") win.minsize(650, 550) I used the following idea: http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm … |
|
Heyho users; I need to update a label in a window every x seconds to get an variabel ("res") which is up to date. My current code: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) lab=Label(win, text="Aktuell: " + res +" Euro", bg='#40E0D0', fg='#FF0000') lab.place(x=20, y=30) btn.pack() def updater(win): ids = lab.after(1000, updater) … |
|
hello daniweb community; The first window my application shows is this one: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) getcurrentrateandcurrentbalance() btn.pack() Usage of win: win = Tk() win = Toplevel() methode getcurrentrateandcurrentbalance() def getcurrentrateandcurrentbalance(): threading.Timer(5.0, getcurrentrateandcurrentbalance).start() print "Hello, World!" + result lab=Label(win, text="Aktueller Kurs: " + res +" Euro/BTC", bg='#40E0D0', fg='#FF0000') lab2=Label(win,text="Aktuell … |
|
hello daniweb community; After a click on a button I need to "direct" the user from the current window to another, like you may know it from installations ("Yes I accept TOS"->click->new window please select installation path). Kind regards; |
|
hello friends; I'v used the tutorial (http://www.daniweb.com/software-development/python/code/216550/tkinter-to-put-a-gif-image-on-a-canvas-python) but now the animation of my .gif doesn't work. I have used much more .gifs (animated) to check if the one was broken but no animated .gif is working in my GUI. Any idea how to fix this problem? Kind regards; |