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 The idea: Create a Frame which overlays the whole window, click on frame means changing window. Is there any way, to get the frame transparent or is my idea completly wrong? At the Moment the frame hides all my Labels in this Windows.

This might help:

# use opacity alpha values from 0.0 to 1.0
# opacity/tranparency applies to image and root frame
root.wm_attributes('-alpha', 0.7)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.