TomSchimansky / TomSchimansky/CustomTkinter
Docs Improvement
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I followed the tutorial and it uses classes however some widget's don't have class examples
so for example I got error
Traceback (most recent call last):
File "E:\experience-impact\JMPModelGUI.py", line 124, in <module>
app = App()
File "E:\experience-impact\JMPModelGUI.py", line 120, in __init__
self.my_frame = ModelFrame(master=self)
File "E:\experience-impact\JMPModelGUI.py", line 106, in __init__
self.label = ctk.CTkLabel(text="OpenVessel Models")
TypeError: __init__() missing 1 required positional argument: 'master'
I didn't know that ctkCTkLabel needed master=self to pass it as a app object?
class ModelFrame(ctk.CTkFrame):
def __init__(self, master, **kwargs):
super().__init__(master, **kwargs)
# self.CTkLabel( text="OpenVessel JMP Models", font=('Helvetica', 18, 'bold')).grid(row=0, column=0, padx=20, pady=20, sticky="nsew"
# add widgets onto the frame, for example:
self.label = ctk.CTkLabel(master=self, text="OpenVessel JMP Models")
self.label.grid(row=0, column=0, padx=20)
if there is update to the docs for class examples it could lessen confusion for users
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the tutorial's widget examples and compare the existing usage with the class-based example in the issue. Update the documentation to show class examples where needed, including how the widget receives its master; done when users can follow the tutorial without encountering the reported missing-master error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100