15,181 Topics
| |
Hi, I'm a noob Python/Tkinter user, and I'm finding that gathering information on the two is not as easy as I'd like... hopefully you guys will be able to help. My first question: I was just wondering if there's a way to tell Python, "take all the files in X … | |
Hi. SInce you guys were so helpful the last time around, I decided to ask a less pressing, but more casual questions. My friends and I want to build a private p2p client (connects to our computers through this client to share files and do messaging), just for the heck … | |
Hello, I have a program written up that is trying to use buttons to turn on and off the radiobuttons themselves. IF the user clicks on the radiobutton itself, then it should have no affect. This simulates a sort of UI touch screen affect, with the radiobuttons themselves looking like … | |
I'm re-creating the classic PacMan for the fun of it and needed a way to translate back and forth between directions and dx, dy for a sprite. Here was a fun solution that avoided cumbersome if...elif...elif...elif... chains. Any thoughts on readability, efficiency? Specifically, if this gets called by 4 monsters … | |
How would one create a simple spreadsheet with Tkinter? | |
This could be a cooking recipe, but in my case it is a chemical recipe. Here is a typical generic chemical recipe: 23 g chemicalA is dissolved in 250 ml methanol. The solution is cooled to 0 - 5 degC and 18 ml compoundB is added dropwise over 60 minutes. … | |
[CODE] def classCreate(self): self.classChoose = Toplevel(root) self.classChoose.title('Choose your Class') self.classChoose.geometry('300x200+300+400') self.labelChoose = Label(self.classChoose, text="Select the class you wish to be") self.labelChoose.grid(row=0) self.listClass = Listbox(self.classChoose, height=4) self.listClass.grid(row=1) self.listClass.insert(END,"Warrior") self.listClass.insert(END,"Brute") self.confirm = Button(self.classChoose, text="Confirm", command=self.confirm) self.confirm.grid(row=2) def confirm(self): fileClass = open('ClassData.txt','r') for line in fileClass: classInfo=line.split(',') print "Name is:", self.Name print "This … | |
Ok, all I want ot know is how to close a script on command, lie type 3 to exit, what modules do i need to import and what is the command, I have everything else sorted out... EDIT: The close command will go in a if statement, which is in … | |
I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; … | |
Is there a way to preselect/highlight a listbox item with the Tkinter GUI toolkit at the startup of the program without clicking the mouse on it? | |
Hi. I've just registered, but I'm not exactly new to here (i've been lurking as a guest). I'm trying to make a countdown timer based on a class that I created, which accepts hours, minutes, and seconds as parameters and counts them down to zero, will displaying them in a … | |
I am searching for the syntax that will allow me to arrange widget buttons in a Tkinter GUI in a specific manner; currently I have three (3) buttons that are stacked[I] vertically[/I] on top of one another. I wish to arrange the buttons so that they form a row of … | |
[U][B]I have two questions regarding Tkinter GUIs[/B][/U]:[LIST=1] [*]I have three buttons in a GUI; at times it seems that the buttons "stick". By this I mean when the mouse is clicked on one it may activate or it [I]may not[/I]. They all work correctly in regards to there function(s) but … | |
I have the commands all ok, but even though the syntax is correct, the pic won't display. Here's the zip. | |
Hello, I am very new to python (a few days) and am wondering how i should go about generating random gridpoints and comparing them to ones inputted by the user. I am completely lost on how i can get the input of the x and y coordinates from the user … | |
Hi All, Basically I (myself Vijay) am a C/C++ developer as i want to implement generic data type in C. i was searching in the google. then i come across similar kind of implementation in the python develoer chain. i was going through some of the mailing chain in [python-dev] … | |
I'm still new to python and need some help writing a program. I need to write one that runs a *.exe and then checks some timings in it. There are 3 numbers ranging from 0<1000 that are hidden in the *.exe(app.exe). If the script runs the app.exe and then runs … | |
I'm new to Python and this was written and posted by someone else on another site as a tutorial for a word unscrambler. I thought it was well written and liked the explanations but I tried to use it but keep getting an error message: line 27, in <module> letters … | |
I need to calcualte the scalar product given two lists of numbers... [code]v1=input("Insert the first vector: ") v2=input("Insert the second vector: ") for i in range(len(v1)): v3=v1[i]*v2[i] print v3 [/code] this code will multiplie all the numbers in list v1 and the numbers in list v2 but the result doesn't … | |
Is it possible to merge together python and javascript.. I am looking forward to fetching the contents of a webpage, parse them and use them in a webpage from javascript. I am a beginner in javascript and i couldn't find any means to fetch the contents(The webpage's entire source code) … | |
What am I doing wrong, I've done it before! [CODE]class Main: def __init__(self, master): self.master = master self.master.title('Role Playing Form V1.0') self.master.geometry('300x250+350+450') self.master.mainloop() self.cmdCreate = Button(self.master, text='Create Character', command=self.create) self.cmdCreate.grid(row=0) def create(self): pass root = Tk() main=Main(root)[/CODE] the button doesn't appear! | |
hi everybody , I am new to python and interested in graphics . I like somebody to walk me thru monthly calendar using tkinter . I have already printed 07 calendar using python but I am stuck when it comes to use it with tkinter . it is no homework … | |
I'm working on an IM client in Python and my idea was to make it fully modular. It seemed to me that the obvious approach is to make all plugins derive from a Plugin class (with ProtocolPlugin, UIPlugin subclasses) and to be loaded on program startup by yet another object, … | |
Decided to start my own thread rather than hijack thread "Sorting" I followed ghostdog74 advice and used module re to extract numeric strings: [php]import re data_raw = """[20] [ 35+ ] age = 40 (84) 100kg $245 """ # use regex module re to extract numeric string data_list = re.findall(r"\d+",data_raw) … | |
I keep reading threads here, some use the Tkinter GUI toolkit and others use the wxPython GUI toolkit. Why would one use one or the other? | |
In python if I divide 6/3 I get 2, that's fine. But I divide 6/4 and get 1... Why aren't I getting a decimal? I would like to know because I want to make something that can detect wether or not a number is whole. (I need help with that … | |
I have a program that displays its results in this manner. I added the results in an array this is what I got. [code] [20] [35] [40] [84] [100] [245] [260] [300] [440] [521] [650] [/code] How can I put it in this way ['20','35','40'] i used append but it … | |
Hi everyone! Im stuck... I'm currently writing a GUI program to control a piece of machinery. I am using wxPython along with a few other bits and bobs including USPP for serial access. My problem is that i need some way of 'pinging' the machine. ie I want to be … | |
Is there an option of some sort in the Dr. Python interpreter that would allow one to re-run the same output results after making adjustments to the code. Example: I run an example of source code and receive an output result. I make changes to the code. I now am … | |
The department's computer has Python 2.4 and on my home computer (really my dad's computer) I installed Python 2.5. Is it possible to have Python 2.4 and Python 2.5 on the same computer? |
The End.