15,194 Topics

Member Avatar for
Member Avatar for predator78

Hey guys I finally got my word unscrambler working the other day, now I fire it up with same code same everything and for some reason getting double output from a list that shouldn't be. So if someone could either look this over and find a problem or maybe do …

Member Avatar for ZZucker
0
211
Member Avatar for mruane

I plan to write a detailed rogue like in python. But first, I have a few questions... how do i get started: how to make the screen how to make the maps how to make the main character move when you press a key how to make it saveable if …

Member Avatar for Freaky_Chris
0
206
Member Avatar for jworld2

Okay, so I've been working on a program that converts ascii values to text. The way that I have the code is functional, yet not convenient. Let me post the code and then explain.- [ICODE]letters=[' enter ','',' ',0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N',\ 'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e',\ 'f','g','h','i','j','k','l','m','n','o','p','q',\ 'r','s','t','u','v','w','x','y','z'] numbers=[10,13,32,48,49,50,51,52,53,54,55,56,57,65,66,67,\ 68,69,70,71,72,73,74,75,76,77,78,79,80,81,\ 82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,\ 106,107,108,109,110,111,112,113,114,115,116,\ 117,118,119,120,121,122] # Ascii values in …

Member Avatar for jworld2
0
146
Member Avatar for jlm699

First you'll need to learn how to use code tags. As your code stands, it is unreadable because all indentation has been lost. If you use code tags, your code is not only readable, but forum members can easily copy and paste it into their code editors to tinker with. …

Member Avatar for vegaseat
0
119
Member Avatar for aot

I'm having trouble unpickling a file -- it gives me ValueError: insecure string pickle. The trouble is, it is nearly identical to another file that I was able to unpickle just fine. For the life of me I cannot see what is strange or different about the new file -- …

Member Avatar for woooee
0
981
Member Avatar for Tribesman

I need help with this program please. This is a program that will turn your first name into a group of numbers with a being equal to 1 and so on. This program does this but I need to have it total all the numbers in the name. I was …

Member Avatar for jlm699
0
284
Member Avatar for keripix

im having trouble trying to run more than one applications from my program. I thought threading might help (but actually i hav little knowledge bout it). below is some part of the program: [CODE]if 'pdf' in self.ebook: thread.start_new_thread(self.open_pdf()) elif "chm" in self.ebook: thread.start_new_thread(self.open_chm()) def open_pdf(self): os.system('evince '%s''%self.ebook) def open_chm(self): os.system('gnochm …

Member Avatar for woooee
0
94
Member Avatar for Luckymeera

hi guys im stuck on my project as im new to python. im using tkinter module. i need to create some traffic lights along the stretch of road and the vehicles should me able to stop the when it is red and should go when green lights. also they should …

Member Avatar for Gribouillis
0
1K
Member Avatar for safir8100

Hi, I am trying to get my python program to download ftp files directly in the program. Connection stuff is done. I managed to download through the command line, but now I want get the same thing done using a python program. Can anyone help me (all kinds of solutions …

Member Avatar for jlm699
0
112
Member Avatar for lumeniel

Hi I have this code and a problem that i don't understand. In [I]image_matrix[/I], a PixelArray object where there is a image. I want to separate this image in frames then I capture pixel by pixel in a double [I]for[/I] with the dimensions of frame. The variable [I]h[/I] represents each …

Member Avatar for lumeniel
0
99
Member Avatar for bryanleo

Hi how do I flush a specific number of bytes in the Input buffer? I don't want to use flushInput() because it removes all bytes. I just want to remove a certain size. What command can be used? Thanks, Bryan

Member Avatar for jlm699
0
123
Member Avatar for Prahaai

Good day. I am using python for quite some time now and i decided to advance a little. I want to write a little extension, or add some C modules for my python. I use Active version. What i want to do is write some wrappers for a game library, …

Member Avatar for Prahaai
0
160
Member Avatar for bryanleo

We are trying to read data from a microcontroller and interface it through serial port. The output is then displayed in Python using Pyserial or the hyperterminal, the former is more important When you touch the input pins of the microcontroller the value changes real time in hyper terminal. But …

Member Avatar for bryanleo
0
232
Member Avatar for pythonprog

i need help writing a program that asks the user to enter an objects mass, and then calculates its weight object> 1000 newtons display a message that it is to heavy object<10 newtons display indiccating that it is to light weight = mass x 9.8

Member Avatar for jlm699
0
74
Member Avatar for Feenix45

[B]Solving systems of Linear equations using Iteration: You are required to write a Python program which will solve system of linear equations with 3 unknowns (to be entered by the user). Your program should display a menu which will allow the user to choose whether he wants to (1) coefficients …

Member Avatar for woooee
0
726
Member Avatar for lllllIllIlllI

Hi everyone What i am doing now is creating a program that the user can change the way buttons look half way through. My problem is i couldnt work out how to update the wx.Button's style while the program is running. I was wondering if anyone could help me for …

Member Avatar for lllllIllIlllI
0
155
Member Avatar for paferlini

Hey guys! im triyng to run these example codes for a simple connection using these libs, and these errors occurs: codes: [ICODE] #server import SimpleXMLRPCServer from datetime import datetime server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8888)) server.register_instance(datetime) server.serve_forever()[/ICODE] [ICODE] #client import xmlrpclib server = xmlrpclib.ServerProxy("http://localhost:8888") print server.now()[/ICODE] en the errors: Traceback (most recent …

Member Avatar for paferlini
0
606
Member Avatar for knish

i am using glob.glob('') function to get a list of all files from a folder. I need to get only those names which do not contain '_ab' in it. How is it possible. I understand the need for regular expressions here. i tried (?!....) . what should work here. example …

Member Avatar for ghostdog74
0
141
Member Avatar for dinilkarun

Hi friends, I have a custom tree control(Tree control) and a check list box placed next to each other on a frame.i.e., tree control on the left side of the frame and check list box on the right. I need to place sizers such that on exapnsion of the frame, …

Member Avatar for lllllIllIlllI
0
113
Member Avatar for ganil123

Hi , Can any body share some material on DOGTAIL+RockNRole Classes, methods, examples. Also some code snippets for tesing UI applications. Thanks in advance

0
53
Member Avatar for dinilkarun

Hi friends... I have a frame with a panel which contains a static bitmap. On resizing or expansion of frame, I want the bit map to be at the centre position with refernece to the frame always irrespective of the size of the frame. Please help!!! Regards, Dinil

Member Avatar for dinilkarun
0
81
Member Avatar for predator78

Hey all, still working on my lil program. But now that I'm getting into loops I'm pretty confused on this one. Needless to say I think this is the first while loop I have used since I started python about a week ago. What I'm trying to do at this …

Member Avatar for predator78
0
117
Member Avatar for laspal

Hey, I am trying to create tuple but not able to do it. here is my code: datatuple =() for emailadd in mailing_list: datatuple((subject, message, sender, [emailadd])) send_mass_mail(datatuple) basically it should be in this format: datatuple = ( ('Subject', 'Message.', 'from@example.com', ['john@example.com']), ('Subject', 'Message.', 'from@example.com', ['jane@example.com']), ) so here my …

Member Avatar for woooee
0
237
Member Avatar for bman923

Im supposed to write it as def day(d,m): and then write the function code. I really cant figure out how this is supposed to be done. Can anyone help or give hints or ideas?

Member Avatar for woooee
0
95
Member Avatar for niks1234

hi, Am new to Daniweb. Name is Nik. Am currently doing a project in Python to create a visualization tool for OSSEC HIDS. I created the GUI using Boa Constructor which works with wx.python. But now i am stuck as to how to retrieve data from OSSEC and show them …

Member Avatar for niks1234
0
109
Member Avatar for ping24

Hi Friends, I want to create a script and nc (netcat) will be my tool for this test. Before telling that let me tell you the scenario that I am conducting the test. I have one client and Server. I have added exploit signatures in the server and client vice …

Member Avatar for jlm699
0
160
Member Avatar for SoulMazer

I started programming in Python as a hobby a few weeks ago, and I have run into a little problem. I am currently making a script to give me a sort of Vocabulary Test. It is kind of hard to explain so I will just show you the code. [code=python] …

Member Avatar for Dunganb
0
2K
Member Avatar for Agni

Hi, The same code as my previous post, but because of this list thing, i'm not able to run specific commands for different options. Here i have 2 options under the 'Names' Menu, 'rajat','prasun', now when the user selects either of them i should be able to know which one …

Member Avatar for Agni
0
99
Member Avatar for predator78

Hey guys, I been working on a small project I found on another forum. It's supposed to decode scrambled word from a word list in 30 sec or less. Well I'm pretty noobish so my method might not be all that great, but I'm giving it a go and learning …

Member Avatar for predator78
0
163
Member Avatar for heshan

Apache Axis2/Java, is a popular open source Web service engine. It currently supports xposing services written in Java, Javascript and Ruby as Web services. This [URL="http://wso2.org/library/articles/deploying-python-service-axis2"]article[/URL] discusses the Python data Binding that enable exposing Web services written in Python.

Member Avatar for peter_budo
0
107

The End.