15,181 Topics

Member Avatar for
Member Avatar for kempablavitt

I need help to get started with this. Any one that knows any examples I can get inspire from? :) Im going to create a game that plays Memory. The user should try to solve a 6x6 matrix by matching words in different cells in a matrix.It should look like …

Member Avatar for lllllIllIlllI
0
178
Member Avatar for monstro

I am currently embedding python in a C++ module. I have a problem in that one of the functions I am trying to build must be capable of accepting various structures for processing specific commands. The function should be declared in C++ as follows [code] void Write(char *cmd, void* mystruct, …

Member Avatar for sneekula
0
122
Member Avatar for blackrobe

Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list …

Member Avatar for danny'sweb
0
108
Member Avatar for iamoldest

Okay heres my code... [ICODE] for swipeload in range (0, 15, 1): "E"+str(swipeload)+"_Path" = os.path.join("data","E"+str(swipeload)+".gif") "E"+str(swipeload) = pygame.image.load("E"+str(swipeload)+"_Path") [/ICODE] So basically I have a bunch of images called "E1, E2, E3, E4, etc..." and I want to load them all into the cache without having to type the code for …

Member Avatar for tomtetlaw
0
172
Member Avatar for kbjr14

hi, everyone, i am working on writing a program that can calculate the extrema of a polynomial function. i've got everything i need except the last step of the process. i need to be able to solve a polynomial equation for f(x)=0. please help.

Member Avatar for jlm699
0
112
Member Avatar for tomtetlaw

Hi all im making a text game but first im making a test one and i was writing it and i came across this error: Traceback (most recent call last): File "/home/tom/Desktop/Python/Text game/main.py", line 98, in <module> main() File "/home/tom/Desktop/Python/Text game/main.py", line 93, in main print 'his attributes are:' + …

Member Avatar for tomtetlaw
0
2K
Member Avatar for Stefano Mtangoo

Hello all, I have problem with wx.richtext I cannot make it start new line at hitting return key! How can I do it so that I can use Align left and right Here is a code [CODE=python] # Text area self.textarea = rt.RichTextCtrl(epanel, style=wx.VSCROLL|wx.HSCROLL|wx.NO_BORDER )[/CODE]

Member Avatar for lllllIllIlllI
0
107
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
49
Member Avatar for dinilkarun

Hi all, How can I split a Progress Bar(wx guage) into two parts?. I want the first part to function normally and in the second part I want to display the percentage. I have attached a snap shot of what I am trying to achieve. Is this possible? Any help …

Member Avatar for dinilkarun
0
243
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
91
Member Avatar for Bouzy210

Hello, I am new to daniWeb. I am creating a script but have run into a problem when it comes to printing the line number. [CODE]print for word in words: word = clearup(word) if word in dictionary: pass else: print word [/CODE] On the last line I want to do …

Member Avatar for Stefano Mtangoo
0
124
Member Avatar for TheOneElectroni

Hello everybody, after diving into Tkinter for a while I'm now willing to learn PyQt. Before spending a lot of time with it I tried to process a very simple script (displaying a plain window) with Pyinstaller. This because I absolutely need to share my app with different people which …

Member Avatar for Stefano Mtangoo
0
446
Member Avatar for scott212

I've got a web service that responds to a request with xml, but there's a problem. I'm forced to send the blank line at the beginning of the file or the web server (apache) throws an error 500. However, the blank line breaks the xml and the page it responds …

Member Avatar for scott212
0
97
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
60
Member Avatar for Stefano Mtangoo

To Be honest this is matter of Choice and no one will be judged for his choice. I got stuck on best editor to use. I have long used Wing IDE 101 and My Favorite IDE with multi language is Netbeans which is coming with Nbpython. Big problem of IDE …

Member Avatar for mathijs
0
238
Member Avatar for massivefermion

Well my question is obvious. I want to ask is it possible to write superscribe or subscribes in python ? thanks!

Member Avatar for massivefermion
0
152
Member Avatar for ufucuk

Hi mates, We are asked to create a huge portal system with lots of sub categories. Think about Yahoo! This postal will get lots of users and in the same there will be many database process. In short, lets think we want to build something like Yahoo! Now I'm in …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for mece

I am new to python and posting to this forum and my searches turned up nothing. I am writing a component for a log parser to combine events from matching dates into one file. For some reason the log files split between 19:59:00 and 20:00:00 hours daily. To resolve this …

Member Avatar for mece
0
760
Member Avatar for XxAaronxX

[QUOTE=vegaseat;159480]A units of measurement converter. Think about all the things that are measured, like distance, area, volume, energy, weight, temperature, pressure and so on. Now think about the many units of measurement the people around the globe use, anything from rods, stones, pounds, inches, pints and liters. A rather long …

0
95
Member Avatar for imabut

i'm trying to implement my own edit menu using Tkinter, my cut and copy methods,... seems to work fine but I'm having allot of trouble getting my paste method to work. will someone please help? (((its kinda ugly i know, but i'm still new to programming and i'm more focused …

Member Avatar for imabut
0
3K
Member Avatar for Stefano Mtangoo

I'm just asking for anyone who knows anywhere to get list of inbuilt wx.ID like wx.ID_CLOSE etc (HTML/PDF), because I dont want to use Id while there is built one. Also can I use menu simiral to something like GetId() Method?? Thanks

Member Avatar for Stefano Mtangoo
0
856
Member Avatar for blackrobe

I've been reading an article but the code is written in C language which I don't get at all... The code is: [CODE]void traverse(Tptr p) { if (!p) return; traverse(p->lokid); if (p->splitchar) traverse(p->eqkid); else printf("%s/n", (char *) p->eqkid); traverse(p->hikid); [/CODE] Someone please translate it to python...

Member Avatar for tyincali
0
154
Member Avatar for laspal

Hi, I am trying to create xl file using pyExcelerator in django. response = HttpResponse( mimetype='application/vnd.ms-excel') response['Content-Disposition'] = 'attachment; filename=output.xls' workbook = Workbook() worksheet = workbook.add_sheet('My Test Sheet') worksheet.write(0,0, 'Company', font_style('left', 1, 'red')) worksheet.write(1,1, 'Hello World!', font_style('left', 1, 'black')) workbook.save() return response The problem here is I am not able …

Member Avatar for laspal
0
104
Member Avatar for Clipper34

Hey guys, well my question is i've seen examples of classes being to create like a function. But for example i saw someone made for a socket it was something along the lines of this: pySocket <host> <port> but i'm confused on how to create something like that. To get …

Member Avatar for Gribouillis
0
130
Member Avatar for Lardmeister

I was looking at some statistical evaluations of a dice roll and stumbled onto this strange result: [code=python]import random # faces of a dice dice = [1, 2, 3, 4, 5, 6] rolls = [] for k in range(3): random.shuffle(dice) #test print dice rolls.append(dice) # test print rolls """ my …

Member Avatar for Gribouillis
0
140
Member Avatar for pyth0n

Hi I am created a word guessing game. I have pretty much completed the game, but I cannot get it to do one thing. That is showing the users previous guess along with the new guess. For example, I want it to be like this Guesses Correct apple no blue …

Member Avatar for woooee
0
78
Member Avatar for mathijs

hey i'm currently working on a simple rpg in python. First i was gonna make it text-based but now i've read the wxpython tutorial and i want to try an create a GUI for it. My sister is gonna make some artwork for me (i'm not good at that kind …

Member Avatar for mathijs
0
599
Member Avatar for vmars

Greetings: I am having trouble with reading the code in thread "Tutorial: GUI programming with wxPython" ([url]http://www.daniweb.com/forums/post623598-3.html[/url]) Where tut shows code: [code] import wx """Example with sizers for dynamic resizing.""" app = wx.App(redirect=False) window = wx.Frame(None, title = 'Sample GUI App', pos = (100,100), size = (400,500)) background = wx.Panel(window) …

Member Avatar for vegaseat
0
191
Member Avatar for iamoldest

python 2.4 how do I say... [ICODE] if x is divisible by (random number) then: [/ICODE] in python coding?!? Thanks!!!

Member Avatar for jlm699
0
101
Member Avatar for dinilkarun

Hi All, I have created a two frames(Frame-1 and Frame-2) using BOA Constructor. Frame-1 has a button on it. On click of this button frame-2 is popped up to the user. I want the focus to be set only on Frame-2. What I mean is that: The application should not …

Member Avatar for dinilkarun
0
161

The End.