Showing results 1 to 18 of 18
Search took 0.01 seconds.
Posts Made By: sharma_vivek82
Forum: Python Oct 3rd, 2007
Replies: 1
Views: 1,172
Posted By sharma_vivek82
Re: Search and replace multiple file

hi, i have used the method explaned in following link, and this helped me a lot, i am sure that this also ll help you..
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52250
Forum: Python Sep 3rd, 2007
Replies: 3
Views: 2,204
Posted By sharma_vivek82
Re: Help with Python code and accessing ZODB

i think you are working with zope/plone environment, so my suggession is to use external method.
Forum: Python Sep 3rd, 2007
Replies: 9
Views: 2,109
Posted By sharma_vivek82
Re: How do I declare a class member function in another class?

the solution, i got from your problem as explained is to construct another class which inherit SubDevice. And this ll make you to call your function as your wish.
Forum: Python Jul 3rd, 2007
Replies: 1
Views: 756
Posted By sharma_vivek82
Question python synchronization

Hi, i am a newbie in python, can any one tell me about synchrinization in python, i have googled about it, but could not get much clear idea..
Thanks in advance.....
:)
Forum: Python Apr 11th, 2007
Replies: 3
Views: 3,228
Posted By sharma_vivek82
Re: Find a word in a file

for better maching of word , go through re module of python, you must find some interesting thing there..
:)
Forum: Python Apr 11th, 2007
Replies: 1
Views: 1,747
Posted By sharma_vivek82
Re: Python tuples and Sql query

hi,
as i got you , i think the better way you can use is :

qry = "select %s from %s where %s" %(name,table,filter)

and then you can create your own method to run sql

-VS
Forum: Python Jan 17th, 2007
Replies: 1
Views: 1,092
Posted By sharma_vivek82
Tutorial creating batch in python

[code]

result=[]
list = int(raw_input("enter the length of list:"))
size_of_batch=int(raw_input("enter the size of batch:"))

def createBatch(lst):
lenLst = len(lst)
if lenLst > size_of_batch:
...
Forum: Python Jan 17th, 2007
Replies: 1
Views: 675
Posted By sharma_vivek82
Tutorial week from given year

[code]
def WeekFinderFromYear(year):
""" will return all the week from selected year """
import datetime

WEEK =...
Forum: Python Jan 17th, 2007
Replies: 1
Views: 1,425
Posted By sharma_vivek82
Tutorial notepad in wxPython

[code]

import wx
import os
from wxPython.wx import *
import wx.html

class MyHtmlFrame(wx.Frame):

def __init__(self, parent, title):
Forum: Python Jan 17th, 2007
Replies: 2
Views: 2,140
Posted By sharma_vivek82
get week list of an year

#Auther : vivek sharma
#date : 06-11-2006
#Description : This script is used to get the list of week in given year, user have to input the year ,


def WeekFinderFromYear(year):
""" will...
Forum: Python Jan 17th, 2007
Replies: 2
Views: 1,996
Posted By sharma_vivek82
a simple notepad in wxPython

code:
you can change this code as you like


import wx
import os
from wxPython.wx import *
import wx.html

class MyHtmlFrame(wx.Frame):
Forum: Python Apr 21st, 2006
Replies: 3
Views: 1,441
Posted By sharma_vivek82
Solution Re: Searching for Files through a Directory -- PLEASE HELP!!!

i think this will help you out, this is not the exact solution of your problem, but now you can find yourself.please indent it yourself, i am unable to indent in message box.
code:
import os
def...
Forum: Python Apr 20th, 2006
Replies: 7
Views: 2,404
Posted By sharma_vivek82
Re: Receive e-mail

hey, why i am getting this error..
can anyone explain me
Traceback (most recent call last):
File "popmail.py", line 14, in ?
rx_headers = re.compile('|'.join(headers),...
Forum: Python Apr 20th, 2006
Replies: 2
Views: 848
Posted By sharma_vivek82
Solution program to read print who you are, based on your user account in/etc/passwd.

import posix
import string
uid = `posix.getuid()`
passwd = open('/etc/passwd')
for line in passwd.readlines():
rec = string.splitfields(line, ':')
if rec[2] == uid:
print 'hello', rec[0],
...
Forum: Python Apr 20th, 2006
Replies: 1
Views: 1,328
Posted By sharma_vivek82
simple code to find a word in any page

import urllib
f = urllib.urlopen("http://www.mahiti.in")
word = "Software"
for line in f:
if word in line:
print line

:cheesy:
Forum: Python Mar 9th, 2006
Replies: 4
Views: 3,022
Posted By sharma_vivek82
Re: Dropdown box in Python

simple code for creating dropdown box using javascript.
the html code for this, is
<html>
<head>
<title></title>
<script language="javascript" src="list.js"></script>
</head>

<body...
Forum: Python Mar 9th, 2006
Replies: 4
Views: 3,022
Posted By sharma_vivek82
Re: Dropdown box in Python

i am working in ubuntu linux. and using python 2.4.2.
Forum: Python Mar 8th, 2006
Replies: 4
Views: 3,022
Posted By sharma_vivek82
Question Dropdown box in Python

hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box)
Showing results 1 to 18 of 18

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:01 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC