Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Choose from dropdown list and then do something?
Post: RE: Choose from dropdown list and then do somethin...

(Jun-07-2019, 07:53 PM)Yoriz Wrote: change ... def helloCallBack(): if tkvar == 'broker': ...to ... def helloCallBack(): if tkvar.get() == 'broker': ... THANK YOU!
Selfiatus1 GUI 2 5,453 Jun-07-2019, 08:43 PM
    Thread: Choose from dropdown list and then do something?
Post: Choose from dropdown list and then do something?

Hi, there is an error with my if function... It just woun't write to the document when I press the button "Generate". I only want to write to a document, a word that is based on the dropdown list, whe...
Selfiatus1 GUI 2 5,453 Jun-07-2019, 06:43 PM
    Thread: Python if statement docx wount work
Post: RE: Python if statement docx wount work

(Jun-07-2019, 05:39 PM)woooee Wrote: You don't have a command to call in your OptionMenu so nothing happens when something is selected. Is it not called when pressing the button? The tkvar variable....
Selfiatus1 General Coding Help 5 3,139 Jun-07-2019, 05:57 PM
    Thread: Python if statement docx wount work
Post: RE: Python if statement docx wount work

Here is the full code: import tkinter as tk from docx import Document HEIGHT = 500 WIDTH = 600 root = tk.Tk() root.title("Generator") canvas = tk.Canvas(root, height=HEIGHT, width=WIDTH) canvas.pa...
Selfiatus1 General Coding Help 5 3,139 Jun-07-2019, 05:35 PM
    Thread: Python if statement docx wount work
Post: Python if statement docx wount work

Hi, I cant get this code to work, I just want a button to be pressed, calling definition "helloCallBack" and from it a series of if statements, whereas, if a variable is a string then write that str...
Selfiatus1 General Coding Help 5 3,139 Jun-07-2019, 03:54 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020