15,181 Topics

Member Avatar for
Member Avatar for vegaseat

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 …

Member Avatar for vegaseat
1
974
Member Avatar for Lolalola

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

0
168
Member Avatar for trips.dude

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. …

Member Avatar for samvinogar
0
17K
Member Avatar for punter999

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

Member Avatar for punter999
0
143
Member Avatar for dnamgyel

[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: འབྲུག་ གི་ རང་ལུགས་ འཆམ་ ། གཏེར་འཆམ་ དང་ པད་གླིང་གིང་ གསུམ་ ལ་སོགས་ པའི་ འཆམ་ གྱི་ རིགས་ ཚུ་ ད་ལྟོ་ བར་ན་ ཡང་ ཡོངས་གྲགས་ སྦེ་ རྐྱབ་སྲོལ་ …

Member Avatar for dnamgyel
0
125
Member Avatar for Sauronevileye

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.

0
51
Member Avatar for ariel.goldstien

It seem that PIL was built without FreeType support. how do I Install the FreeType dev files and rebuild PIL again.

0
104
Member Avatar for mahela007

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?

Member Avatar for mahela007
0
281
Member Avatar for pankti

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 …

Member Avatar for pankti
0
110
Member Avatar for shadwickman

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 …

Member Avatar for Gribouillis
0
599
Member Avatar for calccrypto

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 …

Member Avatar for calccrypto
0
67
Member Avatar for lrh9

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 …

Member Avatar for HiHe
0
171
Member Avatar for adam4u
Member Avatar for Lolalola

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.

0
53
Member Avatar for rehber344

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 …

Member Avatar for rehber344
-1
151
Member Avatar for sindhujavenkat

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

0
60
Member Avatar for anishakaul

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 …

Member Avatar for anishakaul
0
3K
Member Avatar for a1eio

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

Member Avatar for donnie6680
0
1K
Member Avatar for Stubaan

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, …

Member Avatar for Stubaan
0
4K
Member Avatar for calccrypto

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 …

Member Avatar for calccrypto
0
192
Member Avatar for Mathhax0r

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 …

Member Avatar for deonis
0
90
Member Avatar for txwooley

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 …

Member Avatar for txwooley
0
122
Member Avatar for deonis

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 …

0
52
Member Avatar for ariel.goldstien

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 …

Member Avatar for ariel.goldstien
0
357
Member Avatar for pysup

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

Member Avatar for Tech B
0
228
Member Avatar for garyinspringhil

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 …

Member Avatar for woooee
0
150
Member Avatar for nomemory

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, …

Member Avatar for nomemory
0
395
Member Avatar for Hylle

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 …

0
43
Member Avatar for axa121

[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 …

Member Avatar for woooee
0
3K
Member Avatar for itsbrad212

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 = …

Member Avatar for Stefano Mtangoo
0
144

The End.