91 Discussion / Question Topics
Remove Filter Hi I have been using classes for quite a while but there is still one concept yet that i havent ever quite understood and that is decorators. I have noticed Gribouillis uses them a lot so in some ways this question is directed at him. I would like to know … | |
Well, Christmas eve and right now is where you find lots of TV shows trying to get into the festive season by doing a Christmas Special. Now some of these can be good... but some, just are not meant to even be christmas specials. I thought it would be good … | |
Hi, Im making a program that is sortove like a media player... well, it is a media player. Its quite basic at the moment but i have been working on a few features. One of the things it can do is that it can play a video full screen. I … | |
Hi guys, I was making a program yesterday that would send an email using the email modules of python as well as the smtp module. My problem is when i put it into an exe using py2exe and vega's code snippet setup i get some problems. This is the error … | |
Hi guys, I have a program that lets the user play a sound but i was wanting to know how i could make it so the user could vary the speed in which the sound plays so the sound can play slowly and quickly and normaly as well. Is this … | |
Hi Guys, My setup is as follows, i have a D-Link DI-524 router and four computers. Three of them have windows XP Professional while the other computer has windows XP Home edition. They are all connected to the router. The ones with winows Professional are all wireless while the one … | |
Hi guys I am making a program that uses a text control to move messages from one place to another. My program needs to be able to, once the message has been moved, delete what is in the textCtrl. I can go: [code=python] self.textCtrl.SetValue('') [/code] but that leaves me with … | |
Yesterday, i was programming a program in Java when i came accross something i though was just amazing. I could read and write complete Obects with just one line of code! They would go to a file and when i loaded then they would be straight back, without me having … | |
Well daniweb is a pretty vast community right? People here live all around the world. Well with the whole thing about fuel being hugely expensive all around the world i thought it would be good to see the price of fuel all around the world. So just post your location … | |
Hi everyone, I have been fiddling around with a speech recognition program for a while now and i always had something that bothered me. Here is my code i have been using. It is the example code from code.activestate.com [code=python] from win32com.client import constants import win32com.client import pythoncom """Sample code … | |
So. Today i had this though. What is one dollar times two dollars. Instantly the thought sprang to mind that it would be two dollars right? Becuase 1 x 2 = 2. But then i though wait. What about the dollar sign? That means that this has become algebra! So … | |
Hi guys, I was just wondering how far peole have ever gotten in the python challenge? if you havent heard of it, it is a series of python based problems that explore many programming techniques including regex and images. If you havent tried it the link to it is: [url]http://www.pythonchallenge.com[/url] … | |
Hi Guys, I was wondering if there was any way in which you can change the opacity of a window in wxPython. I would like to create a window that is mostly see through but so far i have found no way to do that. My program is a simple … | |
Hi guys, I was looking at some of the commercial IDE's today. Most notably being wingware's python IDE personal edition. I was wondering wether people thought wether the $30 you need to pay for it is worth it or is it not that great when it comes to it. Any … | |
Hi I have been mucking around with VPython for a bit now and i can use it for basic 3D Python but i have not yet worked out how to do things that arent the usual, add square, add arrow, add sphere. So i was wondering if it was even … | |
Hi Im pretty new to the whole C++ programming language but after learning python and java i decided to give it a go. I have been using tutorials at [url]www.cplusplus.com[/url] and that has been working fine but i came across a bit of code today i couldn't understand. It went … | |
Hi I have fiddled around with other GUI's such as pygame and wxPython but i wanted to use something a little more powerful when it came to 3D objects and i saw what PyOpenGl can do. But i spent ages looking for any help but i couldn't find any place … | |
Hi My problem today is i have opened up the wxPython Demo and copied one of the pieces of code across to IDLE so i can have a fiddle with it. My problem is that at the start it goes [icode]from Main import opj[/icode]. Thats what stuffs it up. The … | |
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 … | |
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 … | |
Hi guys I have been making a program over the last few days that grabs an image and re-paints it in paint in 256 colour. The main thing this program is for is so you can watch it getting painted in paint. It works perfectly on my computer but i … | |
Hey everyone I am interested in learning Pygame as a GUI that is suited to making games and i was wondering if it was worth it? My question is, is it good for anything else than games or animations? | |
Hi guys Im pretty new to java after programming with python for about a year i thought i'd give it a go. I did have a quick question though. How would i check for membership in a string. For example [code=java] String str1="Hello world"; String str2 = "world"; [/code] Is … | |
Hi I have made a program that uses a GUI for most of its functions but as soon as i change it to an exe using py2exe all the buttons turn all square and everythin looks like it came from windows 98 rather than XP. Is there any way to … | |
Hi What i want to do for this is to have my program run in the background simulate pressing a button such as ENTER every 10 seconds or so. I have trauled the net and found solutions for VB and C++ but none for python. Is this possible in python … | |
Hi I have been trying to do one of the projects in the projects for beginners section that asks you to get your computer to log off after a certain amount of time has passed without any mouse or keyboard movement. I am not yet up to that bit, in … | |
Hi I have a weather forecasting program that uses a few threads. These threads stop and start at different times throughout the program so there is no set amount of threads at one time. My problem is when i try and close the main thread the program keeps going because … | |
Hi Guys What i am trying to do here is have a tuple of numbers, lets say X. Then i have a list of a few other tuples. I want the program to find the tuple that is closest in value. [code=python] x = (214,521) lis = [(200,500),(250,550),(300,600)] [/code] I … | |
Hi I have made a program with wxPython and i have this bit of code: [code=python] def getpic(self,event,urlp='http://mirror.bom.gov.au/radar/IDR043.gif?20080427173538'): fc = url.urlretrieve(urlp,filename='Weather.jpg') image_file = 'Weather.jpg' self.bmp = wx.Bitmap(image_file) self.img = wx.StaticBitmap(self.background, wx.ID_ANY, self.bmp, pos = (20, 60)) self.background.SetInitialSize() [/code] This is a bit of my code, not the full thing but … | |
Hi i have been fiddling around with the wxPython GUI toolkit for a bit and i wanted one of my programs to start with the window expanded. I googled it but couldn't find an answer there so any help here would be greatly appreciated. | |
Hi Using a template from the tutorial Fuse offered i made this program: [code=python] import wx import os WINDOW_WIDTH = 700 WINDOW_HEIGHT = 600 class MainFrame(wx.Frame,object): def __init__(self): wx.Frame.__init__(self,None, title = "Paul's Text Editor", pos = (200,75), size = (WINDOW_WIDTH,WINDOW_HEIGHT)) self.menubar = wx.MenuBar() self.menufile = wx.Menu() self.menuinfo = wx.Menu() self.SetMenuBar(self.menubar) … | |
Hi I am making a program that collects data and then saves it to a text file. Then i want it to print the text file on a Network Printer and i was wondering how i would go about doing that? | |
Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks | |
Hi I was wondering if there was any way i could use a module or some code to enable and disable my wireless network becuase i often have the problem that it wont connect and enabling and disabling it a number of times nearly always fixes it and i was … | |
Hi I have been working on a blackjack program and i have hit a brick wall as one of my Global assignments isn't working for some reason [code] import random class Cards(object): def __init__(self): global cards global player global comp global comp_tot global playert cards = {2:4,3:4,4:4,5:4,6:4,7:4,8:4,9:4,10:16,'ace':4} player = [] … | |
HI I was having a look into classes and i noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point of the "object" being in the class arguments as it is a Built In Function and i couldn't work out … | |
Hi I have the source of a webpage that tells the weather and i want to extract the data and my only hurdle left to jump is to remove all the formatting HTML marks inside and including the <> bracket. I have the web page source stored as a string … | |
Hi I was making a program that tried to open firefox like this: [code] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') [/code] but i get an error [icode] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') File "C:\Program Files\Mozilla Firefox\firefox.exe", line 1 SyntaxError: Non-ASCII character '\x90' in file C:\Program Files\Mozilla Firefox\firefox.exe on line 1, but no encoding … | |
Hi I have been looking around for some good tutorials but i havent been able to find any especially for networking. i was wondering if anyone in the community could help. thanks | |
Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things. | |
Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps … |
The End.