15,181 Topics
| |
Wallpaper or tile images are small images that can be spread across a background repetitively. A common practice on web pages. The surface created with wx.PaintDC() can be used for this effect and still allows other widgets to be put on top of the wallpaper. The small tile image is … | |
hi, how run standard zope cms? I download from this: [url]http://www.zope.org/Products/CMF/[/url] CMF-2.1.1.zip (1.42 M) and CMFDefault extract and put in Zope\lib\python\Products, then restart Zope. But i don't see cms site in add field or control panel | |
Hi All, I am new to the programming world. I was just writing this code to generate N prime numbers. User should input the value for N which is the total number of prime numbers to print out. I have written this code but it doesnt throw the desired output. … | |
hello seniors, i want to serialize a matrix of any dimension to be serialized and stored in the hard.i will be thankful if you guide me about this.how can i perform this work..? your response and help will appreciated Regards Punter | |
| [TEX] Input1: [འབྲུག་གི་རང་ལུགས་འཆམ་།] [དུས་རབས་བརྒྱད་པའི་ནང་] [གཏེར་འཆམ་དང་] [པད་གླིང་གིང་གསུམ་] [ལ་སོགས་པའི་འཆམ་གྱི་རིགས་ཚུ་ད་ལྟོ་བར་ན་ཡང་] [ཡོངས་གྲགས་སྦེ་] [རྐྱབ་སྲོལ་ཡོདཔ་ཨིན་།] ->actual file (requiring special font support so I have modified the Inputs) [AB'C'DEF'GH'I'] [JKL'MN'O'|] and so on ..........[ ......|] Input2: འབྲུག་ གི་ རང་ལུགས་ འཆམ་ ། གཏེར་འཆམ་ དང་ པད་གླིང་གིང་ གསུམ་ ལ་སོགས་ པའི་ འཆམ་ གྱི་ རིགས་ ཚུ་ ད་ལྟོ་ བར་ན་ ཡང་ ཡོངས་གྲགས་ སྦེ་ རྐྱབ་སྲོལ་ … |
I have a filtered excelfile, im using XLRD to loop through rows and read values from it. The problem is that i do not want the values that is hidden/filtered. I cant for my life found how to do that. Maybe some guy here can help me. | |
It seem that PIL was built without FreeType support. how do I Install the FreeType dev files and rebuild PIL again. | |
How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python? | |
I want to reset the ComboBoxEntry when the arrow symbol on it is clicked, but could not find any method that is called when arrow symbol on dropdown list is clicked. None of the signals button_press_event, key_press_event or focus_in_event works. This all are called when the text area on dropdown … | |
Hello, I was wondering how to go about having a redirect of stdout with Python take effect in a C extension. My python script redirects sys.stdout into a file handle created with [i]open(...)[/i], but within the function in my compiled C-extension, any output ([i]printf[/i], [i]puts[/i], etc) is still given to … | |
how do i get this code to stop referring to its present value, so that the values already saved in the list are not changed to the present value? [CODE] Cm = 0x5A827999; Mm = 0x6ED9EBA1 Cr = 19; Mr = 17 Tm = [[0]*8]*24 Tr = [[0]*8]*24 for i … | |
I've seen these in documentation, namely in the "importlib" documentation for Python 3.1, and I'm wondering what the difference is between a "universal newline" and a "standard newline", if any. I know it has to do with the byte sequence that is used to represent newlines, and I think universal … | |
I need help with the attached python problem. Thanks Adam | |
Hi, i create in Plone new Folder( add new item. / Folder). And how in new Folder put my working Python script? I hope to understand my problem. | |
hi frıends. there ıs somethıng(very lıttle thıng) ı dont get my goal ıs to lımıt the data.and ı set ıt to 512 byte. my fırst aproach ıs [CODE]if len(data)>512: last=data[:512] data=data[512:] else: last=data print last so ı made ıt.ı read the data tıll 512 byte so data ıs stıll str … | |
I wanted to know how to access the contacts fron N85 phone using PyQt. add and delete contact methods are available. but i dont know how to retrive the contact names from the contacts. Plz help it out | |
Hi, I have managed to create a HTML file inside python code, now can someone help me to convert this to a PNG file through a Python script ?? I did Googling first but it resulted in various soft wares for above purpose which I don't want !! I am … | |
Hi, I was wondering how someone would go about making a scrolling ticker or marquee using Tkinter in such a way that allows you to easily add on text and remove.. kinda like a news scroller on the bottom of the tv? thanks all a1eio | |
Hi folks I am struggling to pass the value of a variable, to be used as an argument for a number of sequentially called python scripts, themselves called from a bash script. Apologies for the pathname chaos. Phase 1: reads the case names from a text file, line by line, … | |
i cannot find the mistake i made with this code. i have tried many different ways to create ripemd160, but they either don't work or give me wrong outputs. what did i do wrong? [CODE] # makehex() = change the value into a 8 hex char string # ROL i … | |
I'm working on a game in pygame, and I decided I wanted to make it load flash files for the characters in battle so I could animate them in flash. Is there a module that will allow for easy displaying of multiple flash files, and also for skipping to certain … | |
I wrote a script (kind of a learning thing) to open .rar archived files using unrar (non-free) in Linux. Now I want to add a section where my script will check to see if unrar is installed. To complicate matters, Linux also has a package 'unrar-free', and both use the … | |
Hello ! I'm wondering is there simple way in python to check for file modifications by external sources similar to what existing in gedit or drpython (text editors). So far I was able to check for file modification but I don't know how to "call" this function(see code bellow). I … | |
Hi I am trying to create an image with text hebrew in it using Image and ImageDraw moduls but I keep getting erros. this is the code import Image import ImageDraw a = u'\u05d0'#the unicode of the letter I want to display im=Image.new('RGB',(200,200),(100,100,100)) d=ImageDraw.Draw(im) d.text((0,0),a) this is the error I … | |
Hi, The code below will check if a particular exe is running in windows, return the Process ID and force kill the process. If anybody has an easier way to do it please feel free to comment :) | |
python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively. The slider is self.slider5_2.value tried lots of combos like .value display Value etc. The … | |
Hello, regarding OOP I have Java background, and I usually think in java when I code OOP in python (which sometimes is actually a bad thing). [CODE=python]#!/usr/bin/python class Card(): SUIT = { 'C':'Clubs', 'D':'Diamonds', 'H':'Hearts', 'S':'Spades' } VALUES = { '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, \ '10':10, … | |
Hi I have problems using Call module functions from the package Skype4Py. Here's my code so far: import Skype4Py import time skype = Skype4Py.Skype() skype.Attach() ring = Skype4Py.call.Call Offer = "Echo / Sound Test Service" ring.Finish() Here's my error for this code: Traceback (most recent call last): File "C:\Users\a user … | |
[code] from string import * def removePunctuation(sentence): sentence = lower(sentence) new_sentence = "" for char in sentence: if char not in punctuation: new_sentence = new_sentence + char return new_sentence def wordFrequences(sentence): wordCounts = {} split_sentence = new_sentence.split() print split_sentence for entry in split_sentence: for word in entry: wordCounts[entry] = wordCounts.get … | |
I am making a twitter client in python and wxpython. As of now, my static text is not printing. How can I change this code so it will print out what I want it to? [CODE]import wx import twitter class main(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id, "Twitter Client", size=(700,400)) panel=wx.Panel(self) menubar = … |
The End.