15,181 Topics
| |
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 = … | |
| 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? |
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 … | |
Hi, I am looking for a material that contains many python programs illustrating various core concepts. Please help in this regard. | |
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"] … | |
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 … | |
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! | |
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 … | |
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): … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 кзк ја … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … |
The End.