114 Posted Topics
Re: The error message says that the 'return' statement is outside the function. What's with the line 17: return param2+1 | |
Re: Try this: sys.argv[0] or sys.argv[-1] that should work. | |
Re: do u mean like: [CODE] import random summy=0 keys='abcdefghijklmnopqrstuvwxyz ' for i in range(100): y=random.choice(keys) if y!='m': summy+=1 elif y == 'm': continue print summy [/CODE] | |
Re: [QUOTE=;][/QUOTE] I didn't understand a bit from above lines.Could you explain a bit more.. or posting your example code may help. Also try #coding=<utf8> at the beginning of the code also configure your terminal or IDLE default source encoding as UTF-8. | |
Re: It would have been better to understand your problem if you had posted your code here. Sure I'll help. | |
Re: You can do like this: [CODE] >>> b=['a','b','r','g'] >>> for c in range(len(b)): del b[0] >>> print b[/CODE] You can refer to python docs for range function. | |
using wx python.got black bars instead of unicode characters in gui window. [hint]:My interpreter gives error- [COLOR="Red"]Unsupported characters in input[/COLOR] | |
[CODE]def nod(n): c,i=0,0 while n>0: c=n%10 if c!=0: i=i+1 n=n//10 print(i)#prints the number of digits in the given integer 'n' [/CODE] how to make it able to count 'zeros'? | |
Re: I have Gui2exe installed already but haven't quite used it due to a problem. The problem is - in "gui"window of gui2exe the locations for python modules does not accept the given modules separated by commas i.e.(tkinter,zipfile,fnmatch...) Is this the right technique ? | |
I used py2exe to make an executable,works fine.But even for a simple app I've got 18 other files(.pyd and dlls includinf pythonxy.dll) in the dist folder. I've heard that these files can be compressed into the executable using Gui2exe. I have Gui2exe installed already but haven't quite used it due … | |
I was using winsound module for the first time to use it on one of my small app,and it didn't even gave me a BEEP!. I imported winsound module first. [CODE] >>> import winsound >>> [/CODE] then [CODE]winsound.Beep(37,10)[/CODE]leads to nothing! Any kinda help is appreciated. | |
Re: [QUOTE=snippsat;1101887]Link are not working but look the where working on a skinning system with xml. [url]http://wiki.wxpython.org/TG.Skinning[/url] Media player use a xml skinning system i think. Did find it here,but dont look like much have happend i last 4 years. [url]http://techgame.net/projects/Framework/wiki/SkinningFramework[/url] We could make this a post where we share idèe … | |
Re: [QUOTE=snippsat;1308410][CODE]from distutils.core import setup import py2exe import sys if len(sys.argv) == 1: sys.argv.append("py2exe") setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 3}}, zipfile = None, ##data_files = ['apple.jpg', 'cheese.jpg'], #Can use windows or console,replace my_file.py with py file you want to make exe off. #If not run … |
The End.