This is a personal record of my python programming experiences. It will allow me to see how I am progressing as I learn a new language.
Wednesday, May 18, 2011
Javascript
I found a You tube video that teaches JavaScript, and I used nano to write my code with and Epiphany web browser. It was fun for me. It's not much, but it is a start.
Saturday, May 14, 2011
My first class that makes a GUI
#I wrote a class that can be used to create a GUI. It is a start.
from Tkinter import *
class aGUI:
def __init__(self):
def hello():
print('Hello')
root=Tk()
btn=Button(root,text='press this', command=hello)
btn.pack()
root.mainloop()
from Tkinter import *
class aGUI:
def __init__(self):
def hello():
print('Hello')
root=Tk()
btn=Button(root,text='press this', command=hello)
btn.pack()
root.mainloop()
Monday, May 9, 2011
Some code I wanted to save for work
import arcpy
from arcpy import env
#Search Cursor example
parnum = raw_input("Parcel ID ?")
env.workspace= "p:/MyData.gdb" #This tells it which GDB to work in.
for row in arcpy.SearchCursor("Owners"): #This tell it what feature class to look in.
if row.PID== parnum :
print "Parcel number: ",row.PID
print "Owner name: ",row.ONAME
print "Parcel address: ",row.PADDRESS
print "Deed book & page: ",row.DBOOKPAGE
Subscribe to:
Posts (Atom)
Followers
Blog Archive
- June (1)
- March (3)
- February (1)
- July (3)
- May (1)
- April (1)
- March (1)
- January (1)
- December (1)
- November (4)
- July (3)
- May (2)
- April (1)
- March (6)
- February (2)
- December (1)
- November (1)
- September (3)
- August (3)
- July (1)
- March (3)
- January (1)
- December (5)
- November (2)
- October (1)
- September (2)
- August (1)
- July (4)
- May (3)
- February (1)
- January (1)
- December (1)
- November (2)
- October (2)
- September (9)
- August (2)
- May (1)
- April (1)
- March (6)
- February (5)
- January (3)
- August (2)