No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
So I've been writing this application that works with files , and I wanted to add a list of recently opened files in the "File" menu and I came across a weird bug .. Here's the sample code .. [code] for path in recentFilesList: item = wx.MenuItem(menu, wx.NewId(), path) self.Bind(wx.EVT_MENU, …
Well you could always do something like this .. [code] def ListFolders(YOUR_PATH): for path i os.listdir( YOUR_PATH ): if not os.path.isfile( os.path.join( YOUR_PATH, path) ): yield path [/code] That would get you a list of folders , without the files .. Not really sure if that's what you wanted tho …
So I've started programming in assembler recently (college course) , and of course they are making us use ubuntu and DDD debugger for debugging .. So I was wondering , is it possible to set up DDD on Windows ? I've tried googling but came up with nothing so far …
[code]def findLargest(L): largest = L[0] for x in L[1:]: if x > largest: largest = x return largest def findSmallest(L): smallest = L[0] for x in L[1:]: if x < smallest: smallest = x return smallest def findAverage(L): sum = 0.0 for x in L: sum += x return sum/len(L) …
Ok first of all I'd like you guys to know this is like my first thread ever so go easy on me if I'm not doing something right :P Right then , so I've been programming in python for some time now and I love pretty much everything about this …
The End.
spiricn