Go to advanced search

by Woody_99
Mon Nov 20, 2017 8:15 pm
Forum: Python
Topic: tkinter
Replies: 4
Views: 823

Re: tkinter

There is a tabbed widget in ttk - ttk.Notebook() , is that of any use to you? That allows you to easily have multiple windows (frames) with one visible at a time. I'm not sure if you can hide the notebook's tab pane though. https://docs.python.org/3.5/library/tkinter.ttk.html#notebook Thanks, But t...
by Woody_99
Mon Nov 20, 2017 6:55 pm
Forum: Python
Topic: tkinter
Replies: 4
Views: 823

tkinter

Hello, from tkinter import * import tkinter as tk import platform def raise_frame(frame): frame.tkraise() frame.pack(fill=BOTH ) def quit(): global root root.destroy() root = Tk() root.attributes('-fullscreen', True)#Vollbild root.config(background = "#AAAFFF") # Hintergrundfarbe des Fensters f1 = F...
by Woody_99
Wed Nov 15, 2017 7:04 am
Forum: Python
Topic: GUI with different interfaces
Replies: 3
Views: 723

GUI with different interfaces

Hello, does any of you have an idea how you can program a GUI with Tkinter, using different interfaces (for example, different arrangement of buttons)? Or has someone already programmed something like that?
Thanks, Woody
by Woody_99
Tue Nov 14, 2017 7:58 pm
Forum: Python
Topic: Tkinter in while loop
Replies: 6
Views: 3033

Tkinter in while loop

Hello, i am writing a GUI programm with Tkinter. I dont want to use the tk.mainloop(), course it is in an While loop. I want to use tk.update_idletasks() or tk.update(). but when i try it, I get the folloing message: Traceback (most recent call last): File "C:\Users\XXX\AppData\Local\Programs\Python...
by Woody_99
Tue Nov 14, 2017 2:39 pm
Forum: Python
Topic: Problems with the code (while-loop)
Replies: 6
Views: 821

Problems with the code (while-loop)

Hello, import tkinter as tk global Seite Seite=0 x=4 #maximale Seiten i=1 def Seiteplus(): Seite=Seite+1 if Seite > x: Seite=0 while True: if i==1: root=tk.Tk() root.attributes('-fullscreen', True) root.wm_title("Glashaus") # Fenster Titel root.config(background = "#FFFFFF") # Hintergrundfarbe des F...
by Woody_99
Sun Nov 12, 2017 5:28 pm
Forum: Beginners
Topic: GUI Fullscreen
Replies: 3
Views: 2118

GUI Fullscreen

Hello, my code: import tkinter as tk class FullScreenApp(object): def __init__(self, master, **kwargs): self.master=master pad=3 self._geom='200x200+0+0' master.geometry("{0}x{1}+0+0".format( master.winfo_screenwidth()-pad, master.winfo_screenheight()-pad)) master.bind('<Escape>',self.toggle_geom) d...
by Woody_99
Sun Nov 12, 2017 10:52 am
Forum: Python
Topic: if command doesn't work
Replies: 1
Views: 298

if command doesn't work

Hello, I have written the code: import time import serial # <1> def main(): port = serial.Serial("/dev/ttyACM0", baudrate=115200, timeout=None) # <2> while True: line = port.readline() # <3> line= b'Temperature: 20 C\r\n' arr = line.split() # <4> arr=[b'Temperature:', b'20', b'C'] if len(arr) < 3: #...

Go to advanced search