Skip to content

Messagebox is shown correctly only once #59

Description

@JohnnyFruitbasket

Trying to put Ctk Messageboxes in my code so that users get some sort of response from the program. For some reason, the messagebox is shown correctly only once, the first time I run the program, then this happens:

image

def fetch_data_url(self):
    url = self.app_frame.insert_url.get()
    response = requests.get(url)
    if response.status_code == 200:
            soup = BeautifulSoup(response.content, 'html.parser')
            tables = soup.find_all('table')

            for i, table in enumerate(tables):
                df = pd.read_html(str(table))[0]
                self.df_list.append(df)
            CTkMessagebox(message="Data successfully fetched from URL",
                icon="check", option_1="OK")

Anybody knows about this error? Is there something I could change? I first suspected my python version for be outdated, but it is very weird that the first time, it displayes correctly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions