Skip to content

Error if the button have no fill #142

@Qiming-Liu

Description

@Qiming-Liu
download_image(image_url, image_path)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\tkdesigner\utils.py", line 20, in download_image
    response = requests.get(url)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\sessions.py", line 528, in request
    prep = self.prepare_request(req)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\sessions.py", line 456, in prepare_request
    p.prepare(
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\models.py", line 390, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

I got this output when I was trying to add a blank button.
image
But it works when I set the button like this
image

This seems a really ez bug to fix and if you need help I would like to help.

And another thing is that:
If the button is too large, it seems to create white margins on the top and bottom. (This is why I try to use a blank button)

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