Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
[dev-packages] | |
[requires] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import tkinter | |
"""Note | |
Tkinter main window has invisible frame around it. | |
When you want to just fit the main window to the edge of display, | |
you have to consider the width of the invisible frame. | |
For example, when you use root.geometry("+0+100"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter | |
class InputDialog(tkinter.Toplevel): | |
""" | |
show a dialog which asks user to input something | |
""" | |
def __init__(self, root): | |
super().__init__(root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter | |
class ChangeColorOnHoverButton(tkinter.Button): | |
""" | |
button class which changes its background color on hover | |
""" | |
def __init__(self, root): | |
super().__init__( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter | |
class MoveButtonByDragging(tkinter.Button): | |
""" | |
button which can move by dragging | |
""" | |
def __init__(self, root): | |
super().__init__( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter | |
#Button which moves main window to the top-right of the screen | |
class MovePositionButton(tkinter.Button): | |
def __init__(self, master): | |
super().__init__( | |
master, | |
width=15, | |
text="click", | |
command=self.move_position, |
OlderNewer