15,406 Topics

Member Avatar for
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
75
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
727
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
156
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
114
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
54
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
238
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
164
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
Member Avatar for TheNational22

I would like to take a file that is comma delimited, read it, and in the first column, change every 7 into a 4. I think there are a few ways to skin this cat, looking for the best way, Any ideas? A brief view of what the file looks …

Member Avatar for sneekula
0
84
Member Avatar for leegeorg07

hi again i help with my carnival clubs fundraising and being lazy like i am, i wanted to make a program that would tell you how much to ask for after inputting information and would then save it into a text file. using griboullis' help from my other thread about …

Member Avatar for leegeorg07
0
113
Member Avatar for chris99

Currently, all the functions work as expected, but the moving left and right. I want to alter my code to allow me to hold down right and left and for it to continue moving. I know there is a statement with the right syntax, I just dont know how to …

Member Avatar for chris99
0
133
Member Avatar for CelestialDog

I'm trying to instaniate (not sure if thats correct spelling lol) one of my classes but even though i've spelt the name correctly i keep getting a NameError: main: [code] import os import os.path import shutil print "#######################################################################" print "# FOLDER SORTER - VERSION 0.1 Beta #" print "# This …

Member Avatar for CelestialDog
0
232
Member Avatar for bman923

def P(p_0, t, i): return p_0 * (1+i)**t when i call the fuction P(1000,7,5) it returns it as 1000 and any otha number i put as p_0 it returns that number and i cant figure out why

Member Avatar for Chewie-DK
0
91
Member Avatar for ganil123

Hi I need some material on Python unit testing framework with examples. please help me in this regard.

Member Avatar for ganil123
0
285
Member Avatar for Chewie-DK

the background of the program. A HTTP server is front end for a Fileserver and use Pyro RMI to load / write files on the Fileserver. before a client is allowed access to the files a security handshake must be done. It all works when I run it. Now I …

Member Avatar for Chewie-DK
0
118
Member Avatar for Mr_Grieves

I'm writing a method to generated a latex table table from input arrays. It's working but there is one nuisance: I want trailing zeros on numbers. Right now I'm using the %g method which works nicely, but it still will turn 1.340 into 1.34 if I do "%.4g" % 1.340. …

Member Avatar for ZZucker
0
97
Member Avatar for sb77

[QUOTE=vegaseat;159472]After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. This sticky is dedicated to a list of just such projects. If you know …

0
50
Member Avatar for lllllIllIlllI

Hi What i am trying to do is make a wx.FileDialog() show Import as the label on the button. I know you can change it to such things as open and save but i cant find a way to let me change it to a label saying import. Any help …

Member Avatar for sneekula
0
83
Member Avatar for jmn0729

Is anyone interested in helping an RHCE learn python. I'm reading right now, but I have some scripts I need to write that will help a University "Linux Security" class. The scripts will be used to grade case studies. Thanks, RHCE #805008527832836

Member Avatar for jmn0729
0
115
Member Avatar for Agni

Hi, Below is my test code, i have a list of names in a file, i read the names and i have to insert them as menu options in the menubar. Since its a dynamic menu and people can add new menu's it has to be read from a file …

Member Avatar for Agni
0
242
Member Avatar for predator78

[COLOR="Green"]Hello all, I'm new to the forum and also to python :D. Anyway I have been enjoying it quite a bit and wanted to start into something a bit more technical. So I though sockets would be a good start. I found a great sight , but the first script …

Member Avatar for predator78
0
146
Member Avatar for Stefano Mtangoo

I want to subclass My App and I hit the wall. If I don't subclass it works! WHAT IS WRONG HERE???? [ICODE] import wx ID_NEW = 10 ID_OPEN = 11 ID_CLOSE = 12 ID_SAVE = 13 ID_SAVE_AS = 14 ID_PAGE_SETUP = 15 ID_PRINT_PREVIEW = 16 ID_PRINT = 17 ID_EXIT = …

Member Avatar for vegaseat
0
113
Member Avatar for leegeorg07

hi again i thought of a program simply to use to save time in checking my emails by somehow connecting to my login and downloading all the emails. this could later be expanded into using multiple accounts. can anyone give me a nudge in the right direction to start this?

Member Avatar for leegeorg07
0
105
Member Avatar for Stefano Mtangoo

Im Not sure if I have spelled well the DLL file but It is file that comes with MySQL 4 and Now in MySQL 5.1. It is standalone server version of MySQL to embedd in App. Is there anyne who knows how to connect to it and Execute SQL commands …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for ganil123

Hi, I am looking for a material that contains many python programs illustrating various core concepts. Please help in this regard.

Member Avatar for ganil123
0
101
Member Avatar for tillaart36

Hello I'm new to the forums and I want to ask some questions about grid like operations: Here I make a grid and set all cellvalues to 0. [CODE] import wx import wx.grid class TestTable(wx.grid.PyGridTableBase): def __init__(self): wx.grid.PyGridTableBase.__init__(self) self.rowLabels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] …

Member Avatar for tillaart36
0
258
Member Avatar for TalkNerdy2Me

Hello Everybody I live in Tucson, AZ, where I am a technical recruiter. My hobbies include collecting Star Wars and Monty Python memorabilia--yes to all of your nerds out there I am proud to be among you! My passion is music; I could not live without it and have very …

Member Avatar for Lardmeister
0
17
Member Avatar for zachabesh

So I was messing around with Tkinter, and I was wondering, is there an easy way to wipe whatever widgets you currently have 'packed' and show a new layout? So, if my fist screen has a button, I want a whole new layout to come up when the user hits …

Member Avatar for zachabesh
0
116
Member Avatar for brainblitzkrieg

Hi guys! I'm new to python and want to do my db2 course assignment with python as a user interface coz I heard it's simple. Could someone here teach me how to connect python to db2? some link of documentation might be helpful..... :) THANKS!

Member Avatar for jlm699
0
50
Member Avatar for lid

Hello, I would like to know if i could launch via a Python GUI an ogr2ogr command : ogr2ogr -f "GPX" -nlt POINT "C:\....gpx" "C:\....mif" I would proposate a GUI where people choose in 2 fields their files, select "POINT" in a list (if Waypoints and POPYLINE for Routes or …

Member Avatar for jlm699
0
117
Member Avatar for Seagull One

I've been doing some more work on my robot today and I'm having a bit of trouble with calling a random function like so: [CODE=python] import speech import random import pythoncom running = 1 class OnTopic: topic = "nothing" def TopicChange(self): self.topic = "nothing" print OnTopic.topic class Know_Raptors: def RapYoung(self): …

Member Avatar for vkumar42
0
1K
Member Avatar for ceebs

Thanks in advance for the help. I’m fairly new to Python so please forgive me if I don’t quite use the correct terminology. I have a very simple serial port interface (non-gui) application that I run on windows. Upon closing the window, I want the program to run some cleanup …

0
47
Member Avatar for Th3_uN1Qu3

A lot of blah blah, scroll down for the matter i need help with... Hello everybody. I'm a moderator of a gaming forum and a big fan of bishoujo games. I sometimes do my own game releases/revamps, but what i've did till now didn't involve much "real" coding. I want …

Member Avatar for Th3_uN1Qu3
0
199
Member Avatar for iamthwee

Let's say I have a text file separated by tabs containing stuff like: [code] 1.02 \t hello \t 01/02/2008 [/code] How do I get python to recognise that 1.02 is a number, hello is a string and 01/02/2008 is a date. The file has no pattern, i.e it won't always …

Member Avatar for bvdet
0
396
Member Avatar for d-pabs

I am fairly new to python/programming (~6 months) and am trying to make a 3D volume using VolumeRendering.py as my base code. I need to try and render multiple volumes at once (VolumeRendering.py only allows for 1 volume at a time) and assign different RGB colours to each volume. I …

Member Avatar for vkumar42
0
85
Member Avatar for deviantrunner

i'm pretty new to using python...i'm still in the 1st basics... nyway i've tried to work this up... but it didn't work :s... it shows that there's something wrong with the "def" of the add and sub and div and mul formulas...here is the program... tell me what i did …

Member Avatar for deviantrunner
0
220
Member Avatar for Seagull One

I'm finally getting my robot's software off the ground!:) (Although I'm giving my "artificial learning" program a rest for later). However, here's something I've been wondering how to do for quite some time now. I'm using the time module to allow my robot to tell me the time upon vocal …

Member Avatar for Seagull One
0
145
Member Avatar for alberttruism

I wrote this little guy a while ago. I'm brand new to DaniWeb, and happy to be here. This was one of the earlier things I wrote in Python, and therefore one of the earlier things I wrote period. I've since done some much more complicated nonsense, but this one …

Member Avatar for sneekula
0
325
Member Avatar for alberttruism

Greetings to the entire DaniQeb community (lurkers included). I am a CS n00b as far as the study and practice is concerned but, I've been circling the rim for many years via a steady diet of Sci-Fi, psychics, biology, and net Art. I'm fiercely eager to learn this stuff. I …

Member Avatar for alberttruism
0
165

The End.