15,181 Topics

Member Avatar for
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
110
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
102
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
114
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
99
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
256
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
112
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
46
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
114
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
45
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
198
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
394
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
84
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
218
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
143
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
293
Member Avatar for OutOfReach
0
93
Member Avatar for vocalstud69

I was wondering how Python would work with this program I wanted to make. I have very little experience with Python, so bare with me. What I wanted was to make a program that brought up quotes randomly from a .txt file and put them in a XP/Vista message bubble …

Member Avatar for zachabesh
0
3K
Member Avatar for jancho1911

Hi ! I am new to DaniWeb. I searched everything to find an answer but i can't. This is for my final project and i need it to get my bachelor degree. I have a text file that has this type of files: 2001.7.1.407 изутрината во тетовски 2003.5.3.20083 кзк ја …

Member Avatar for zachabesh
0
141
Member Avatar for TheNational22

I have a problem. I have a csv that stores data about checks in a private restaurant . Not CC's or anything, just table number, items, server number, blah. It repeats for every check a four lines that start with 1,4,5,6,7. I have a interface that picks up this csv …

Member Avatar for zachabesh
0
90
Member Avatar for s_jmp

how do i login to site and stay logined?( i meant logged in) fore example i have a htm file with a text box named stxt that sends the form to a php file called login.php AND ALL OF THIS IS WITH POST METHOD and when i logged in i …

Member Avatar for s_jmp
0
95
Member Avatar for regomodo

Hi, i have a major issue in program and i cannot figure out why. It is an image stacker which averages, brightens, darkens multiple images to a single image. When i call function self.saveFile() straight after the program has started, it acts as it should. I can specify a new …

Member Avatar for regomodo
0
348
Member Avatar for vistovistor

Hello daniweb, This is my first post, and coincidentally my first program! (more like a script though I am told) At my work there is a lot of programmers, unfortunately they do not like Python. I cannot agree with their sentiment! It is my first language (computer wise) and so …

0
62
Member Avatar for mm013

Hi, I am a newbie in python, and i am currently using py2exe in Windows and python 2.5 platform. The problem is, my python code is residing in several subdirectories (1 folder for images, 1 for other .py files etc). Now, I would like to use py2exe to create an …

Member Avatar for mm013
0
312
Member Avatar for samjeba

here is the code i am trying to read ascii value which is string and print , but execution stops at file open file print statement :( [code] import os import sys import string filename = "c:\\test.exe" try: f = open(filename,"rb") except IOError: print'cannot open the file' sys.exit(0) print'file is …

Member Avatar for woooee
0
95
Member Avatar for alc6379

Thanks to Dani for adding Python to the scripting languages category! ...I haven't heard many people mention Python around here... Am I the only Python fan here? I know its usage isn't as widespread as Perl, but it is, IMHO, as powerful and useful as Perl, for general scripting, web …

Member Avatar for ZZucker
0
502
Member Avatar for vic huebner

I'm attempting to learn wxPython by writing a card game. After reading the excellent tutorials here as well as wxPython in Action, I still don't know how to put over-lapping objects in the right order. The biggest problem is in correctly stacking playing card images (StaticBitmaps) as in PySol. It …

Member Avatar for ZZucker
0
93
Member Avatar for zachabesh

Scenario: I have 2 scripts. One is an ftp program that takes a list of files and downloads them. The other is a simple program that takes one file and copies it to another directory. What I want to do: When the ftp program finishes with one file, I want …

Member Avatar for zachabesh
0
81
Member Avatar for fake-name

Ok... I'm working on a program that takes ISBN numbers, grabs data on them from ISBNdb.com and sticks said data into a database. At this point, I've successfully managed to get the ISBN XML file from isbndb.com, but whenever I try to feed it into SAX, it seems to try …

Member Avatar for jlm699
0
338
Member Avatar for lumeniel

Hello, everyone the follow error shows when i try run my code if (i==2): width = line[0,3] TypeError: string indices must be integers The code of error is this [CODE] for line in fl: i += 1 if (i==2): width = line[0,3] elif (i==3): frames = line[1,1] elif (i>3): append(array_color, …

Member Avatar for lumeniel
0
81

The End.