Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Possible BUG in underlying codebase or Demo programme Demo_All_Elements.py #6057

Open
3 tasks
krs-novice opened this issue Nov 23, 2022 · 1 comment
Open
3 tasks
Labels
Platform / Config Problem Specific to an OS or individual setup

Comments

@krs-novice
Copy link

krs-novice commented Nov 23, 2022

Type of Issue (Enhancement, Error, Bug, Question)

BUG


Operating System

Linux
Arch Linux (rolling)
[home]$ uname -r
6.0.9-arch1-1

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()
Python version: 3.10.8 (main, Nov 1 2022, 14:18:21) [GCC 12.2.0]
port: tkinter
tkinter version: 8.6.12
PySimpleGUI version: 4.59.0
PySimpleGUI filename: .local/lib/python3.10/site-packages/PySimpleGUI/PySimpleGUI.py

Python version (sg.sys.version)

Python 3.10.8 '3.10.8 (main, Nov 1 2022, 14:18:21) [GCC 12.2.0]'

PySimpleGUI Version (sg.__version__)

4.59.0

GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)

tkinter 8.6.12


Your Experience In Months or Years (optional)

Years Python programming experience
5+ - but solving problems not as a main job!
Years Programming experience overall
10+
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
No - [actually I gave up on tkinter on a project in 2009]

Anything else you think would be helpful?
Not urgent for me
On running:
[DemoPrograms]$ python Demo_All_Elements_Simple.py

  • it fails with trace reproduced in details below,

Please note that the slightly older Demo_All_Elements.py does work (does not include the sg.theme_use_custom_titlebar() call)


Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • [X ] Searched main docs for your problem www.PySimpleGUI.org
  • [ X] Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demos.PySimpleGUI.org
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • [ X] Run your program outside of your debugger (from a command line)
  • [ X] Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.org
  • [ X] Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
  • Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released

Detailed Description

[DemoPrograms]$ python Demo_All_Elements_Simple.py
Traceback (most recent call last):
File "/home/kevin/Downloads/PySimpleGUI-master/DemoPrograms/Demo_All_Elements_Simple.py", line 83, in
window = make_window()
File "/home/kevin/Downloads/PySimpleGUI-master/DemoPrograms/Demo_All_Elements_Simple.py", line 71, in make_window
[sg.Checkbox('Use Custom Titlebar & Menubar', sg.theme_use_custom_titlebar(), enable_events=True, k='-USE CUSTOM TITLEBAR-')],
AttributeError: module 'PySimpleGUI' has no attribute 'theme_use_custom_titlebar'
Exception ignored in: <function Output.del at 0x7f58292eec20>
Traceback (most recent call last):
File "/home/kevin/.local/lib/python3.10/site-packages/PySimpleGUI/PySimpleGUI.py", line 4284, in del
self._TKOut.del()
AttributeError: 'NoneType' object has no attribute 'del
Running the Demo_All_Elements_Simple.py produces this traceback:
[DemoPrograms]$ python Demo_All_Elements_Simple.py
Traceback (most recent call last):
File "/home/kevin/Downloads/PySimpleGUI-master/DemoPrograms/Demo_All_Elements_Simple.py", line 83, in
window = make_window()
File "/home/kevin/Downloads/PySimpleGUI-master/DemoPrograms/Demo_All_Elements_Simple.py", line 71, in make_window
[sg.Checkbox('Use Custom Titlebar & Menubar', sg.theme_use_custom_titlebar(), enable_events=True, k='-USE CUSTOM TITLEBAR-')],
AttributeError: module 'PySimpleGUI' has no attribute 'theme_use_custom_titlebar'
Exception ignored in: <function Output.del at 0x7f58292eec20>
Traceback (most recent call last):
File "/home/kevin/.local/lib/python3.10/site-packages/PySimpleGUI/PySimpleGUI.py", line 4284, in del
self._TKOut.del()
AttributeError: 'NoneType' object has no attribute 'del'

Code To Duplicate

I attempted to run the Demo program as above - I made no amendments to it

A short program that isolates and demonstrates the problem (Do not paste your massive program, but instead 10-20 lines that clearly show the problem)

This pre-formatted code block is all set for you to paste in your bit of code:

# Paste your code here

Screenshot, Sketch, or Drawing


Watcha Makin?

If you care to share something about your project, it would be awesome to hear what you're building.
I'm trying to add a front end to help me filter elements in creating time series data on prescribing, from a massive database.

@pysimpleissue pysimpleissue bot closed this as completed Nov 23, 2022
@jason990420 jason990420 changed the title [ Enhancement/Bug/Question] Possible BUG in underlying codebase or Demo programme Demo_All_Elements.py [Bug] Possible BUG in underlying codebase or Demo programme Demo_All_Elements.py Nov 24, 2022
@pysimpleissue pysimpleissue bot removed Fill issue form or you will be REJECTED You MUST use the supplied template to submit a request. PySimpleGUI Issues Bot Has Detected an Error labels Nov 24, 2022
@pysimpleissue pysimpleissue bot reopened this Nov 24, 2022
Repository owner deleted a comment from pysimpleissue bot Nov 24, 2022
@PySimpleGUI
Copy link
Owner

You need to upgrade your version of PySimpleGUI.

You'll find in the docs the release notes mention the function that's missing. It shows it was added in 4.60.0

https://www.pysimplegui.org/en/latest/#4600-pysimplegui-8-may-2022

AttributeError: module 'PySimpleGUI' has no attribute 'theme_use_custom_titlebar'

@PySimpleGUI PySimpleGUI added the Platform / Config Problem Specific to an OS or individual setup label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform / Config Problem Specific to an OS or individual setup
Projects
None yet
Development

No branches or pull requests

2 participants