Skip to content

Conversation

SrivastavaSatyam
Copy link

No description provided.

Copy link
Owner

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples/buttons/ directory should only contain files used in buttons.md. Please move this file into examples/, so that it is not in examples/buttons/, and add a comment to the beginning of the file something like this:

# this tutorial doesn't contain anything else about ttk styles yet

Comment on lines +7 to +9
'''Adding Normal Button '''
btn1 = Button(root, text = 'Normal Button')
btn1.pack(pady=20) #pady means padding along y axis
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments like this are not useful and should be deleted. In fact, there is only one useful comment in this file. The code is clearly creating a button, and it is easy to google tkinter pady. If there is too much comments, nobody will read them.

btn2.pack(pady=20)

'''Notice
style option inside styled button comes only with ttk not with the normal Tk button
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only useful comment in the file. It should be shortened though, e.g. # ttk.Button has style option but tkinter.Button doesn't

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants