91 Discussion / Question Topics

Remove Filter
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
114
Member Avatar for lllllIllIlllI

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 …

0
80
Member Avatar for lllllIllIlllI

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 …

0
52
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
2K
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
3K
Member Avatar for lllllIllIlllI

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 …

Member Avatar for hotmatrixx
0
147
Member Avatar for lllllIllIlllI

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 …

Member Avatar for Freaky_Chris
0
240
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
88
Member Avatar for lllllIllIlllI

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 …

Member Avatar for vmanes
0
194
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
772
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
158
Member Avatar for lllllIllIlllI

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] …

0
51
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
94
Member Avatar for lllllIllIlllI

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 …

Member Avatar for Stefano Mtangoo
0
62
Member Avatar for lllllIllIlllI

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 …

Member Avatar for ZZucker
0
527
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
145
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
684
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
177
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 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 lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
370
Member Avatar for lllllIllIlllI

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?

Member Avatar for Ene Uran
0
110
Member Avatar for lllllIllIlllI

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 …

Member Avatar for peter_budo
0
101
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
903
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
388
Member Avatar for lllllIllIlllI

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 …

Member Avatar for Gribouillis
0
1K
Member Avatar for lllllIllIlllI

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 …

Member Avatar for jlm699
0
99
Member Avatar for lllllIllIlllI

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 …

Member Avatar for vegaseat
0
118
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
570
Member Avatar for lllllIllIlllI

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.

Member Avatar for lllllIllIlllI
0
68
Member Avatar for lllllIllIlllI

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) …

Member Avatar for lllllIllIlllI
0
644
Member Avatar for lllllIllIlllI

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?

Member Avatar for Ene Uran
0
93
Member Avatar for lllllIllIlllI

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

Member Avatar for lllllIllIlllI
0
549
Member Avatar for lllllIllIlllI

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 …

0
50
Member Avatar for lllllIllIlllI

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 = [] …

Member Avatar for lllllIllIlllI
0
181
Member Avatar for lllllIllIlllI

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 …

Member Avatar for bvdet
0
106
Member Avatar for lllllIllIlllI

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 …

Member Avatar for bumsfeld
0
106
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
123
Member Avatar for lllllIllIlllI

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

Member Avatar for jrcagle
0
113
Member Avatar for lllllIllIlllI

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.

Member Avatar for woooee
0
84
Member Avatar for lllllIllIlllI

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 …

Member Avatar for a1eio
0
8K

The End.