Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.220.9.180
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
Demo /
tkinter /
guido /
Delete
Unzip
Name
Size
Permission
Date
Action
AttrDialog.py
14
KB
-rw-r--r--
2020-04-19 21:13
AttrDialog.pyc
18.33
KB
-rw-r--r--
2024-04-10 04:58
AttrDialog.pyo
18.33
KB
-rw-r--r--
2024-04-10 04:58
ManPage.py
6.7
KB
-rw-r--r--
2020-04-19 21:13
ManPage.pyc
6.27
KB
-rw-r--r--
2024-04-10 04:58
ManPage.pyo
6.27
KB
-rw-r--r--
2024-04-10 04:58
MimeViewer.py
4.39
KB
-rwxr-xr-x
2024-04-10 04:57
MimeViewer.pyc
4.83
KB
-rw-r--r--
2024-04-10 04:58
MimeViewer.pyo
4.83
KB
-rw-r--r--
2024-04-10 04:58
ShellWindow.py
4.07
KB
-rw-r--r--
2020-04-19 21:13
ShellWindow.pyc
5.47
KB
-rw-r--r--
2024-04-10 04:58
ShellWindow.pyo
5.47
KB
-rw-r--r--
2024-04-10 04:58
brownian.py
1.07
KB
-rw-r--r--
2020-04-19 21:13
brownian.pyc
1.59
KB
-rw-r--r--
2024-04-10 04:58
brownian.pyo
1.59
KB
-rw-r--r--
2024-04-10 04:58
brownian2.py
1.35
KB
-rw-r--r--
2020-04-19 21:13
brownian2.pyc
1.74
KB
-rw-r--r--
2024-04-10 04:58
brownian2.pyo
1.74
KB
-rw-r--r--
2024-04-10 04:58
canvasevents.py
6.45
KB
-rwxr-xr-x
2024-04-10 04:57
canvasevents.pyc
10.46
KB
-rw-r--r--
2024-04-10 04:58
canvasevents.pyo
10.46
KB
-rw-r--r--
2024-04-10 04:58
dialog.py
3.13
KB
-rwxr-xr-x
2024-04-10 04:57
dialog.pyc
3.11
KB
-rw-r--r--
2024-04-10 04:58
dialog.pyo
3.11
KB
-rw-r--r--
2024-04-10 04:58
electrons.py
2.27
KB
-rwxr-xr-x
2024-04-10 04:57
electrons.pyc
2.33
KB
-rw-r--r--
2024-04-10 04:58
electrons.pyo
2.33
KB
-rw-r--r--
2024-04-10 04:58
hanoi.py
4.54
KB
-rw-r--r--
2020-04-19 21:13
hanoi.pyc
3.82
KB
-rw-r--r--
2024-04-10 04:58
hanoi.pyo
3.82
KB
-rw-r--r--
2024-04-10 04:58
hello.py
331
B
-rw-r--r--
2020-04-19 21:13
hello.pyc
701
B
-rw-r--r--
2024-04-10 04:58
hello.pyo
701
B
-rw-r--r--
2024-04-10 04:58
imagedraw.py
509
B
-rw-r--r--
2020-04-19 21:13
imagedraw.pyc
1.13
KB
-rw-r--r--
2024-04-10 04:58
imagedraw.pyo
1.13
KB
-rw-r--r--
2024-04-10 04:58
imageview.py
205
B
-rw-r--r--
2020-04-19 21:13
imageview.pyc
570
B
-rw-r--r--
2024-04-10 04:58
imageview.pyo
570
B
-rw-r--r--
2024-04-10 04:58
kill.py
3.79
KB
-rwxr-xr-x
2024-04-10 04:57
kill.pyc
4.81
KB
-rw-r--r--
2024-04-10 04:58
kill.pyo
4.81
KB
-rw-r--r--
2024-04-10 04:58
listtree.py
991
B
-rw-r--r--
2020-04-19 21:13
listtree.pyc
1.5
KB
-rw-r--r--
2024-04-10 04:58
listtree.pyo
1.5
KB
-rw-r--r--
2024-04-10 04:58
mbox.py
7.3
KB
-rwxr-xr-x
2024-04-10 04:57
mbox.pyc
8.17
KB
-rw-r--r--
2024-04-10 04:58
mbox.pyo
8.17
KB
-rw-r--r--
2024-04-10 04:58
newmenubardemo.py
1.2
KB
-rwxr-xr-x
2024-04-10 04:57
newmenubardemo.pyc
1.59
KB
-rw-r--r--
2024-04-10 04:58
newmenubardemo.pyo
1.59
KB
-rw-r--r--
2024-04-10 04:58
optionmenu.py
441
B
-rw-r--r--
2020-04-19 21:13
optionmenu.pyc
594
B
-rw-r--r--
2024-04-10 04:58
optionmenu.pyo
594
B
-rw-r--r--
2024-04-10 04:58
paint.py
1.85
KB
-rw-r--r--
2020-04-19 21:13
paint.pyc
2.19
KB
-rw-r--r--
2024-04-10 04:58
paint.pyo
2.19
KB
-rw-r--r--
2024-04-10 04:58
rmt.py
4.39
KB
-rwxr-xr-x
2024-04-10 04:57
rmt.pyc
4.93
KB
-rw-r--r--
2024-04-10 04:58
rmt.pyo
4.93
KB
-rw-r--r--
2024-04-10 04:58
solitaire.py
17.37
KB
-rwxr-xr-x
2024-04-10 04:57
solitaire.pyc
20.41
KB
-rw-r--r--
2024-04-10 04:58
solitaire.pyo
20.41
KB
-rw-r--r--
2024-04-10 04:58
sortvisu.py
18.89
KB
-rwxr-xr-x
2024-04-10 04:57
sortvisu.pyc
23.18
KB
-rw-r--r--
2024-04-10 04:58
sortvisu.pyo
23.18
KB
-rw-r--r--
2024-04-10 04:58
ss1.py
25.57
KB
-rw-r--r--
2020-04-19 21:13
ss1.pyc
31.67
KB
-rw-r--r--
2024-04-10 04:58
ss1.pyo
31.07
KB
-rw-r--r--
2024-04-10 04:58
svkill.py
4.75
KB
-rwxr-xr-x
2024-04-10 04:57
svkill.pyc
5.8
KB
-rw-r--r--
2024-04-10 04:58
svkill.pyo
5.8
KB
-rw-r--r--
2024-04-10 04:58
switch.py
1.52
KB
-rw-r--r--
2020-04-19 21:13
switch.pyc
2.85
KB
-rw-r--r--
2024-04-10 04:58
switch.pyo
2.85
KB
-rw-r--r--
2024-04-10 04:58
tkman.py
8.79
KB
-rwxr-xr-x
2024-04-10 04:57
tkman.pyc
8.88
KB
-rw-r--r--
2024-04-10 04:58
tkman.pyo
8.88
KB
-rw-r--r--
2024-04-10 04:58
wish.py
623
B
-rw-r--r--
2020-04-19 21:13
wish.pyc
737
B
-rw-r--r--
2024-04-10 04:58
wish.pyo
737
B
-rw-r--r--
2024-04-10 04:58
Save
Rename
""""Paint program by Dave Michell. Subject: tkinter "paint" example From: Dave Mitchell <davem@magnet.com> To: python-list@cwi.nl Date: Fri, 23 Jan 1998 12:18:05 -0500 (EST) Not too long ago (last week maybe?) someone posted a request for an example of a paint program using Tkinter. Try as I might I can't seem to find it in the archive, so i'll just post mine here and hope that the person who requested it sees this! All this does is put up a canvas and draw a smooth black line whenever you have the mouse button down, but hopefully it will be enough to start with.. It would be easy enough to add some options like other shapes or colors... yours, dave mitchell davem@magnet.com """ from Tkinter import * """paint.py: not exactly a paint program.. just a smooth line drawing demo.""" b1 = "up" xold, yold = None, None def main(): root = Tk() drawing_area = Canvas(root) drawing_area.pack() drawing_area.bind("<Motion>", motion) drawing_area.bind("<ButtonPress-1>", b1down) drawing_area.bind("<ButtonRelease-1>", b1up) root.mainloop() def b1down(event): global b1 b1 = "down" # you only want to draw when the button is down # because "Motion" events happen -all the time- def b1up(event): global b1, xold, yold b1 = "up" xold = None # reset the line when you let go of the button yold = None def motion(event): if b1 == "down": global xold, yold if xold is not None and yold is not None: event.widget.create_line(xold,yold,event.x,event.y,smooth=TRUE) # here's where you draw it. smooth. neat. xold = event.x yold = event.y if __name__ == "__main__": main()