Tag: sunjay

htmlgen latest update!

PLEASE READ THIS POST FOR THE MOST UP TO DATE NEWS ON htmlgen AS OF APRIL 26, 2011

You can access information and the latest version from htmlgen’s wiki page here:

http://wiki.sunjay.ca/Python:Contents/Htmlgen:Contents

And if you’re into shorter URLs, you can also use this one!

http://sunjay.ca/u/htmlgen-latest

Thanks!
-Sunjay03

Please post comments for any thing you want to say! =D

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

Python htmlgen (Python 2.7/3 only!)

htmlgen: Welcome to the new world of Python HTML generation!

I give you…htmlgen! The new, completely made from scratch, easily expandable, highly hierarchy based super HTML generation system!

This very simple concept of making HTML primarily through Python objects is amazing!

Demo: (continue reading…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

Python Dynamic Properties!

Hello everyone!

Have you ever wished that instead of having to have your users use annoying function names like getSelection() or setSelection(), they could just use a property that did it all for them? No more user function calling. Welcome to the future, or at least the unknown past.

Here is a demo of the built-in property function:

class Vector:
	def __init__(self, x, y, z):
		self.x = x
		self.y = y
		self.z = z

	def __repr__(self):
		return "(%.2f, %.2f, %.2f)"%(self.x, self.y, self.z)

	def get_mag(self):
		return (self.x**2+self.y**2+self.z**2)

	magnitude = property(get_mag)

vec = Vector(1,2,3)

print('vec initialized at:')
print(vec)
print('magnitude=', vec.magnitude, '\n') # == 14

vec.x = 10
print('vec.x = 10')
print(vec)
print('magnitude=', vec.magnitude, '\n') # == 113

vec.y = -5
print('vec.y = -5')
print(vec)
print('magnitude=', vec.magnitude, '\n') # == 134

See more at this AMAZING tutorial!

http://adam.gomaa.us/blog/2008/aug/11/the-python-property-builtin/

I’m glad I could share this with you, and sorry for not posting in so long.

Happy coding! :)

-Sunjay Varma

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

CanvasList.py

Hey everyone!

Been messing around with some Python Tkinter Canvas and I must say, it is very interesting. (continue reading…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

The iCarryBag!

Never carry your books again!

The iCarryBag will (continue reading…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

  • Login:




    Forgot?
    Register
  • Poll:

    Which software should I develop?

    • PyPhoneBook - A Python phone number/schedule keeping program (0%, 0 Votes)
    • PyWebMaker - A fully featured Python HTML generation, and website project management system. (100%, 0 Votes)

    Total Voters: 0

    Loading ... Loading ...
  • Categories:

  • Date:

    February 2012
    S M T W T F S
    « Apr    
     1234
    567891011
    12131415161718
    19202122232425
    26272829  
  • Copyright © 1996-2010 blog.sunjay-varma.com. All rights reserved.
    Jarrah theme by Templates Next | Powered by WordPress

    Switch to our mobile site