CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 01:32:46 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20071208103652
location: https://web.archive.org/web/20071208103652/https://wiki.python.org/moin/lecture4_example_2
server-timing: captures_list;dur=0.479819, exclusion.robots;dur=0.018371, exclusion.robots.policy;dur=0.008611, esindex;dur=0.010755, cdx.remote;dur=10.518696, LoadShardBlock;dur=347.037179, PetaboxLoader3.datanode;dur=259.151982, PetaboxLoader3.resolve;dur=43.719737
x-app-server: wwwb-app224
x-ts: 302
x-tr: 381
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app224; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 08 Aug 2025 01:32:47 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sat, 08 Dec 2007 10:36:52 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 08 Dec 2007 10:36:52 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 08 Nov 2005 08:06:03 GMT", ; rel="prev memento"; datetime="Sat, 25 Nov 2006 02:14:13 GMT", ; rel="memento"; datetime="Sat, 08 Dec 2007 10:36:52 GMT", ; rel="last memento"; datetime="Sat, 08 Dec 2007 10:36:52 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_1_20071208084132_crawl105-c/52_1_20071208103011_crawl107.arc.gz
server-timing: captures_list;dur=0.597890, exclusion.robots;dur=0.023209, exclusion.robots.policy;dur=0.010012, esindex;dur=0.012677, cdx.remote;dur=6.752675, LoadShardBlock;dur=297.821226, PetaboxLoader3.datanode;dur=137.027267, PetaboxLoader3.resolve;dur=299.050516, load_resource;dur=167.380178
x-app-server: wwwb-app224
x-ts: 200
x-tr: 522
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
lecture4 example 2 - PythonInfo Wiki
lecture4 example 2
#!/usr/bin/python #Souce section 1 #mandatory for unix and linux #--------------------------------------------------------------- from Tkinter import * #This library give us windows and buttons from random import * #This library allows us to generate random numbers #import library section 2 # #What not to use??? #--------------------------------------------------------------- def one_to_ten(): ran = uniform(1,10) print ran def GoWork(): # def starts a function, or define a function sum = 3*5 print sum #Function section 3 #---------------------------------------------------------------- #Code section 4 window = Tk() #i am the parent, button = child stacy = Button(window, text = 'yoyo', command = one_to_ten) #A rose with any other name would be just as sweet stacy.pack() #you can name it after your fish (ignored) window.mainloop() #youcan use your fish's name
EditText (last edited 2006-10-08 11:25:47 by c-124-244-vas-l2)
DeleteCache (cached 2007-12-06 02:22:36)- Login
- Navigation
- Actions
- Your recent pages