- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 15
- Posts with Upvotes
- 10
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Programming, alcohol, stimulants, mathematics, girls
- PC Specs
- Tablet PC
Re:
The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! For info on wxPython modules see: http://www.wxpython.org/docs/api/wx-module.html |
|
I have a problem guys. It's due to duck typing. Now I expected to run into something like this sooner or later, but I can't help but feel there's a better solution. [code=Python]import re def patternMatching(pattern, string): matchList = re.findall(pattern, string) print '\n'.join(['%s' % v for v in matchList]) [/code] … |
|
Re:
Hi All, I am in the process of learning python. I have a gui that gives the user the option of selecting between two applications to run. Currently each button calls one of these two modules (another python script), using the import command. Since it takes a few minutes for … |
|
Re:
this was the question on my exam the other day Which strings does regular expression r"^([^aeiou]\w)+\1$" recognize? (3 answers) "o_o-o_" "baraba" "ananas" "anasan" "-O->-O" "izgriz" im not into re at all :D, I tried to compile that expression and check for every string.. funny thing was that none was recognized.. … |
|
Re:
Heloo, i have just encountered a problem in comiling a module of a program made by python and um not experienced in it, where should i run the module, in the command prompt of windows or in the shell, i dunno wheather i post this thread in the right place, … |
|
Re:
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) … |
|
Re:
Hello! I'm new in this forum and i have some problems in school. I'm from Germany and my teacher gave me the task to install a dart game in Python. Now i have not much time left. So i want you to ask if you could maybe help me with … |
|
Re:
Hello, I am an experienced programmer in OO langauges such as C++, C#, Java... etc. The problem I have is that I have written a class, and when I try to instantiate that class from another object, the compiler says that it cannot find it at the Import stage. From … |
|
Re:
I'm running 2.4.4 using gentoo. I've compiled python with Tk. (USE="tk" in /etc/make.cont) I can not get "turtle.setup(width=800,height=600,startx=400,starty=300)" to set the screen size. Any ideas? Is there another way to set the screen size? ? cdub [code = python] import Tkinter import turtle turtle.setup(width=800,height=600,startx=400,starty=300) turtle.down() turtle.right(30) turtle.forward(100) [/code] |
|
Re:
I'm a complete beginner. I know how to get things to print to the screen, with the print command. But I want to be able to input a string of text and have that text returned in all caps. Do I do this with an argument to the print command … |
|
Re:
Dear All, What is the Major Differences between Python 2.3 and 2.4 and What are all the Major Features in Python 2.4?????????? regards Mani |
|
Re:
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? |
|
Re:
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 |
|
Re:
So I have a simple dice program that lets the user make bets. If their current money pool is larger than the money pool in highscores.txt it will write the new score to the file. The program works as intended except for the high scores. When I try to write … |
|
Re:
Hello! I would like to sort (by number) a file of data that looks like below: ABGH SDFDS 123 SDFS sDF 12 ... Can somebody help me? Thanks |
|
Re:
I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I … |
|
Re:
How to create a tree control with child nodes having check boxes? I want the check boxes to be preferably on the left side of the nodes. |
|
Hi there. I'm new to Python. I started learning it 3 days ago. I've figured out everything by myself so far, but this is stumping me: Whenever I load a file such as a html document or a text file, it loads fine. But when I load this gif or … |
|
Re:
Hi there. I'm now to this forum hoping to get an answer that I feel shouldn't be too complicated but, with that said, I haven't been able to find a solution to this after doing some research for a few hours today. What I am looking to do is take … |
|
Re:
Hi! I've got an assignment to read an input file and do some calculation and a graph and fancy stuff like that. The problem I am having is reading the file. I get a file that looks like this: [code] 0.00 1.776e-12 3.756e-07 0.000e+00 0.000e+00 0.20 1.769e-12 2.377e-07 0.000e+00 0.000e+00 … |
|
Re:
I am trying to add user input using the raw_input function to string url_orig. I am attempting to replace the spaces with +'s to make a 'google search'. the replace function works fine in IDE but not when I excecute the program. Any help will be appreciated [code]url_orig = 'http://www.google.com/search?hl=en&q=' … |