Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~7K People Reached
Interests
like to play computer games, to watch discovery chanel
Favorite Forums
Favorite Tags

16 Posted Topics

Member Avatar for narendran_9

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.. [url]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52250[/url]

Member Avatar for munieb
0
416
Member Avatar for jonamasa

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.

Member Avatar for jrcagle
0
265
Member Avatar for gratefulluke

i think you are working with zope/plone environment, so my suggession is to use external method.

Member Avatar for sharma_vivek82
0
612
Member Avatar for sharma_vivek82

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..... :)

Member Avatar for bumsfeld
0
80
Member Avatar for sneekula

for better maching of word , go through re module of python, you must find some interesting thing there.. :)

Member Avatar for sharma_vivek82
0
196
Member Avatar for sliver_752

hi, as i got you , i think the better way you can use is : [code] qry = "select %s from %s where %s" %(name,table,filter) [/code] and then you can create your own method to run sql -VS [QUOTE=sliver_752;340249]Hello all, Is there any algorithm to convert a python tuple …

Member Avatar for sharma_vivek82
0
680
Member Avatar for sharma_vivek82

code: you can change this code as you like [code] import wx import os from wxPython.wx import * import wx.html class MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title) html = wx.html.HtmlWindow(self) html.SetPage( "This is test implementation of Simple <b>Notepad</b> using <font color=\"red\">wxPython</font> !!!! " "<br>View is created using …

Member Avatar for pty
0
411
Member Avatar for sharma_vivek82

[code]#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 return all the week from selected year """ import datetime WEEK = {'MONDAY':0,'TUESDAY':1,'WEDNESDAY':2,'THURSDAY':3,'FRIDAY':4,'SATURDAY':5,'SUNDAY':6} MONTH = {'JANUARY':1,'FEBRUARY':2,'MARCH':3,'APRIL':4,'MAY':5,'JUNE':6,'JULY':7,'AUGUST':8,'SEPTEMBER':9,'OCTOBER':10,'NOVEMBER':11,'DECEMBER':12} year=int(year) …

Member Avatar for mawe
0
2K
Member Avatar for sharma_vivek82

import wx import os from wxPython.wx import * import wx.html class MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title) html = wx.html.HtmlWindow(self) html.SetPage( "This is test implementation of Simple <b>Notepad</b> using <font color=\"red\">wxPython</font> !!!! " "<br>View is created using <font color=\"red\">wxGlade</font>") class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begin …

Member Avatar for vegaseat
0
446
Member Avatar for sharma_vivek82

def WeekFinderFromYear(year): """ will return all the week from selected year """ import datetime WEEK = {'MONDAY':0,'TUESDAY':1,'WEDNESDAY':2,'THURSDAY':3,'FRIDAY':4,'SATURDAY':5,'SUNDAY':6} MONTH = {'JANUARY':1,'FEBRUARY':2,'MARCH':3,'APRIL':4,'MAY':5,'JUNE':6,'JULY':7,'AUGUST':8,'SEPTEMBER':9,'OCTOBER':10,'NOVEMBER':11,'DECEMBER':12} year=int(year) month= MONTH['JANUARY'] day=WEEK['MONDAY'] dt = datetime.date(year,month,1) dow_lst = [] while dt.weekday() != day: dt = dt + datetime.timedelta(days=1) lst_month = MONTH.values() lst_month.sort() for mont in lst_month: while dt.month == …

Member Avatar for vegaseat
0
119
Member Avatar for sharma_vivek82

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: no_of_batch=lenLst/size_of_batch last_entry_batch=lenLst%size_of_batch first_index=0 last_index=size_of_batch else: no_of_batch=0 first_index=0 last_entry_batch=lenLst newList = lst[0:last_entry_batch] runChangeState(result,newList) return while no_of_batch != 0: newList = lst[first_index:last_index] runChangeState(result,newList) first_index=first_index+size_of_batch last_index=last_index+size_of_batch no_of_batch = no_of_batch-1 if no_of_batch==0: …

Member Avatar for vegaseat
0
124
Member Avatar for sharma_vivek82

[code]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], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code]

Member Avatar for alc6379
0
165
Member Avatar for pare80

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 directoryWalker( unused, dirName, nameList ): print "Entering new directory: " + dirName filename …

Member Avatar for sharma_vivek82
0
110
Member Avatar for sharma_vivek82

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

Member Avatar for vegaseat
0
92
Member Avatar for gYbU

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), re.IGNORECASE) NameError: name 'headers' is not defined [B]

Member Avatar for vegaseat
0
597
Member Avatar for sharma_vivek82

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

Member Avatar for vegaseat
0
792

The End.