No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- like to play computer games, to watch discovery chanel
16 Posted Topics
Re: 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] | |
Re: 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. | |
Re: i think you are working with zope/plone environment, so my suggession is to use external method. | |
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..... :) | |
Re: for better maching of word , go through re module of python, you must find some interesting thing there.. :) | |
Re: 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 … | |
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 … | |
[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) … | |
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 … | |
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 == … | |
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: … | |
[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] | |
Re: 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 … | |
import urllib f = urllib.urlopen("http://www.mahiti.in") word = "Software" for line in f: if word in line: print line :cheesy: | |
Re: 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] | |
hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box) |
The End.