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()
           

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
 

Followers

Blog Archive

About Me

My photo
Biking helps me to cope with life.