15,175 Topics

Member Avatar for
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
442
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
237
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
755
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
Member Avatar for dinilkarun

Hi all, I have used a status bar on my frame developed in BOA Constructor. I want to split my status bar into two parts in proportion of .75 and .25 i.e., First part should be 75% and 2nd part should be 25% of the total. And then at various …

Member Avatar for dinilkarun
0
168
Member Avatar for pyth0n

Hi, I am creating a game the asks the user if they want to play again at the end. If the user answers yes, I want python to execute the program again starting from the beginning. I have tried searching, but could not find anything. Is there anything in Python …

Member Avatar for pyth0n
0
105
Member Avatar for imcrackinup3

I have a project for which I need to use turtle. I'm very new to python, and our teacher didn't really explain how to use turtle. What's the basic format I need to use to draw a polygon? I have to define a function, polygon(), and run it with two …

Member Avatar for vegaseat
0
76
Member Avatar for MaxManus

When I am trying to install Python on my computer I get the error "administrative rights are required". It is only one account on my computer so I do not understand the message.

Member Avatar for Stefano Mtangoo
0
121
Member Avatar for suresh_iyengar

Hello, I want to fetch a web page and parse links in that. I am using the foll. code [code=python] file =urllib.urlopen("file:///home/suresh/html_parser/Category:Sports.html") content = file.read() # Process the page. [/code] But since the page contains UTF-8 content, its not able to parse it properly. But, if I save the page …

Member Avatar for tyincali
0
100
Member Avatar for massivefermion

Hi Excuse me but i came again Can someone learn me how to work with py2exe? thanks

Member Avatar for lllllIllIlllI
0
99

The End.