15,181 Topics

Member Avatar for
Member Avatar for FAITH2011

[B]Hi, Could someone tell me where to find a good tutorials on pygame 1.9.1 for beginner thanks[/B]

Member Avatar for emorjon2
0
115
Member Avatar for Nassarofficial

Hello, i have to split my code into parts so i split a dragimage demo from the wx demo package which is this code: [ICODE] import wx import images #---------------------------------------------------------------------- class DragShape: def __init__(self, bmp): self.bmp = bmp self.pos = (0,0) self.shown = True self.text = None self.fullscreen = False …

Member Avatar for loveerl
0
237
Member Avatar for Gammastre

Hi, I'm new to programming, and I'm trying to make a simple metronome program. I can't figure out why sound is not being played. The tk window does open, but otherwise, nothing else happens. [CODE=python] from Tkinter import * import tkSnack root = Tk() tkSnack.initializeSnack(root) testsound = tkSnack.Sound(load='/Users/nikitahaduong/Desktop/Python/metronomesound.mp3') testsound.play() root.mainloop() …

0
42
Member Avatar for superhe

In the following program, I'M getting the following result.Could somebody tell me why? >>> class obdi(object): ... def _new_(self,nm='hechao'): ... self.name=nm ... print 'Create a class instance for ',nm ... def showname(self): ... print 'your name is ',self.name ... print 'my name is ',self._class_._name_ ... >>> foo=obdi() >>> foo.showname() your …

Member Avatar for richieking
0
282
Member Avatar for stevemail

[url]http://pastie.org/763792/wrap[/url] This in IMHO, a really useful piece of code, to wrap and run terminal commands, on a gtk+vte python based gui. I would to make some improvements, in order to wrap some terminal applications. How can SET_FOCUS (at start) to the first vte frame? (Avoiding to click on terminal …

0
43
Member Avatar for forsakenedzero

hey, i am trying to create a progam that reads gif images and displays them from raw binary , but some how only small images worked till now [ICODE]from imagehex2 import* def lzw(hexList,asclist,numberbinary,numberbyte): lzw,x,numberbyte=[],0,numberbyte+1 number=numberbyte print number print 'numberc binary =',numberbinary numberbitperbinary=numberbinary+1 for t in range(len(hexList)): if asclist[t]==',': if hexList[t+5] …

0
55
Member Avatar for FAITH2011

Hi all, Could someone help with the position of text on screen in pygame. Basic structure would look something like this below. now I like the user to input the text position starting at top left and moving 1 space at a time until end of that line then onto …

0
101
Member Avatar for Nassarofficial

Hello, i am writing a simple GUI Builder, and I finished all the part that leads to the code that will be put into the window which is viewed to the user, and my problem is i want to the code to be sort of refreshed to view the changes …

0
44
Member Avatar for novice20

[B]hi all using telnetlib, I am issuing a 'top' command on a remote host. Top seems to continue indefinitely. On a terminal, I can use CTRL+c to suspend the process... What can be passed in telnet.write() equivalently to suspend the process , yet retain the output so far... pls help …

Member Avatar for novice20
0
749
Member Avatar for rssk

how to store the output of a telnet session on a local machine, so that it can be used further for calculations??

Member Avatar for rssk
0
1K
Member Avatar for foren

[CODE]import re, os, sys sys.stdout = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\log1.txt', 'a') memdump = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\test.txt','rb') count = 1 while 1: memdump_line = memdump.readline() if not memdump_line:break evidence = open('c:\\Fummy_Tasks\\RECONSTR_ANALYSIS\\04052010\\test1_Strings\\word1.txt','rb') for x in range (0,len(memdump_line)-3): while 1: evidence_line = evidence.readline() if not evidence_line:break if memdump_line[x]==evidence_line[0] and memdump_line[x+1]==evidence_line[1] and memdump_line[x+2]==evidence_line[2]: print memdump_line print count count = …

Member Avatar for olaji
0
93
Member Avatar for senthazal

Friends, Exploring a Model Based Open Source testing framework, Written in Python, called PyModel. [url]http://staff.washington.edu/jon/pymodel/www/[/url] I am trying hard to start using it, but no success. Can any one let me know where to place these files and how to run them ? Thanks in Advance. Regards S

0
51
Member Avatar for rslepoy

Hi, I am a beggining Python NLTK user. I regularly review word documents with word counts between 5K and 10K. Can someone share a small fragment of code that would import the word doc, or a text doc so that I can use NLTK modules to generate qualitative and quantative …

0
53
Member Avatar for Hideyshi

Hey guys! I was just coding a script to type a keyboard remotely from a network address. I have everything worked out; except the networking part. How am I able to get, for example, a string from a networked device? Is there a particular library used to achieve this? Thanks …

0
48
Member Avatar for romes87

Hi I am trying to do a simple thing but I am stuck :(. Basically, I have 4 texts. I want to compare text 2 with text 1 and text 4 with text 3, then save these differences into two different texts so that these differences can then be compared. …

Member Avatar for richieking
0
898
Member Avatar for linux

[B]Ah! Never mind! I forgot you could embed classes such as:[/B] [code]class Heroes(): class Lords(): class Phill(): hp = 25 >>> Heroes.Lords.Phill.hp 25[/code] ------------------------------------------------------ I am attempting to write an RPG in Python. I am not worrying about the battle system or mapping quite yet, and am more focused on …

Member Avatar for richieking
0
5K
Member Avatar for scrivomcdivo

Hi folks. I'm currently looking at developing a client app in Python. I have a server app developed in C++ that captures wifi data and then my app connects to the server and grabs the data relating to the wifi access points and then inserts this into a MySQL DB. …

Member Avatar for nezachem
0
111
Member Avatar for Blackberryy

Hi guys I am looking to create the following as shown below. Anybody able to give me a hand as im really struggling to make the rectangles different lengths.

Member Avatar for richieking
0
2K
Member Avatar for Nassarofficial

Hello, I am working on a project, and I cant seem to get around a part of it, which is really crucial to the program.. I am using WX btw for GUI, but unfortunately, I want when a button clicked, to open a new Miniframe and take the values and …

Member Avatar for Nassarofficial
0
113
Member Avatar for vbx_wx

[code] 09:00 Johnny Bravo 10:25 Dexter laboratory 11:55 Cow & Chicken ..................... 18:10 I am weasel .................. [/code] Anyone knows a method to implement if i enter 10:30 to print whats on at that hour? (Cow & CHicken in my case) Thanks.

Member Avatar for richieking
0
82
Member Avatar for kylpi07

# I have created a program that takes input and sorts it. # I have also set up a program that takes to lists, combines them, and lists them together in order. # The thing I am trying to do ((using the random module, random(), randint(), seed(), and shuffle() )) …

Member Avatar for richieking
0
66
Member Avatar for vbx_wx

Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this …

Member Avatar for -ordi-
0
115
Member Avatar for rssk

[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m …

0
61
Member Avatar for Harris00
Member Avatar for loveerl
0
696
Member Avatar for Tcll

hey... I've been working on my first GUI for a while now, and I just need some input on it... first off... the image object won't work for tex0-type formatting... so I have to make each pixel from the data provided... I've gotten as far as reading the 32 byte …

Member Avatar for Tcll
0
2K
Member Avatar for mirena

Hi there, I am very new to python and wx and all that and I have a problem with my program, I'm trying to save what's been drawn on the screen,but just cant make it work. Here is the code: [CODE] import wx class MPanel(wx.Window): def __init__(self, parent): wx.Window.__init__(self, parent) …

Member Avatar for vegaseat
0
174
Member Avatar for vegaseat

This little code snippet shows you how you save a wxPython canvas drawing to a standard image file.

1
2K
Member Avatar for woofers

I have a python program in my system...i need to execute this program in other systems connected through a lan and show the o/p there...can nybody help pls...

-1
55
Member Avatar for rssk

hi all, i want to calculate the difference b/w two terms i.e,(actual memory usage-after snmp walk message usage)

-2
59
Member Avatar for rssk

how to use file open ...... i want to read 1.process memory usage 2.cpu memory usage 3.free memory usage thanks in advance

Member Avatar for -ordi-
-3
60

The End.