Member Avatar
Okay so I'm writing a code for a game and the way its currently programmed is the main menu is contained within a large function that references another function, and so on. Not too complicated. But (as you'll see with the code below) I have all the essential variables set …
by Nether_1 in Game Development ()
Member Avatar
How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives. Thanks, Harsh
by hpoddar in Software Development ()
Member Avatar
Recently I started using my first attempt at Python multithreading. The purpose of the code is to run multiple WHILE loops at the same time, one of which searches for the change of a variable to TRUE caused by input picked up by the other. However, when i ran the …
by Nether_1 in Programming ()
Member Avatar
Assignment Overview1 This assignment focuses on the design, implementation and testing of a Python program which uses file processing, lists and strings to solve the problem described below. Program Specifications: The New York Times newspaper has published “best seller” lists since 1942. Book sales are tracked nationwide, leading to a …
by Aries_Child in Computer Science ()
Member Avatar
Recently I started coding a simple Game Engine in Python, but for some reason I couldn't remember how to get Pygame to recognize you clicked on a certain area. No sample code (sorry) but I was wondering if anybody knew how to make it so Pygame will recognize that the …
by Nether_1 in Programming ()
Member Avatar
I'm using the BullionVault API to view my orders. I use the requests from the official documentation ... and python language. My issue is** the request response is the HTML DOM of the BullionVault login page**. Here is my code: ... What I am doing wrong ?
by Johnrednex in Programming ()
Member Avatar
I have a wx.DatePickerCtrl with the dropdown popup window that allows the user to pick a date from the calendar. What I would l like to have my program do is process an event when the user has clicked on a day in the dropdown calendar. Unfortunately the only native …
by ihatehippies 11 in Software Development ()
Member Avatar
Hi, can anyone explain to make script ... and ... ? It's totally Different method from ubuntu, because my ... still window 7. Every second ... and ... must change... Thanks Before... Noted: Python2.7
by zero_1 in Programming ()
Member Avatar
Hello, i recently learned Pig Latin and how it works (some stupid hard shakespeare language in Python lol) and in CodeAcademy it says "print Pig Latin" in pig latin which i do not know how and i need some help, here is the code i entered for the program on …
by pastapengus in Software Development ()
Member Avatar
How do you catch incorrect entries? Instead of yes or no the user enters something else? ...
by dier02 in Programming ()
Member Avatar
Alright so I wrote a little program using Python 2.7 and the pygame module. For some reason, no matter what I do, the actual Pygame screen itself won't flip() or update() at all, no matter what I do. The code's pictured below(it's rather long): ... It will open up a …
by Nether_1 in Programming ()
Member Avatar
Recently I attempted to install Pygame for Python 2.5 on my new computer. The computer runs Windows 10 32-bit, and I have installed a 32 bit copy of Pygame, so there shouldn't be problems there. Whenever I enter my Python shell to attempt to import, this error happens: ... I …
by Nether_1 in Software Development ()
Member Avatar
I want to use Tkinter funtion to create a a temperature calculator. I have all the code for the calculator, however using Tkinter function i cant figure out how to get the variable input by the users. I am new to python and programming, just started programming less then a …
by sabbib -4 in Software Development ()
Member Avatar
I am new to python, in the below code i am reading 2 files and writing in 2 files. I want to open these files in seperate functions as to make some indented look. Can anyone suggest me how to do it? ...
by engrjd91 in Software Development ()
Member Avatar
Hello everyone, I have two files i.e Rules.txt and Members.txt. I have set different rules for different members. Now i have break down the rules comma seperately using the for loop. I want to compare each index of the 1st file with the respective index of the second file. If …
by engrjd91 in Software Development ()
Member Avatar
Hi, i still learning about python. Now i study learning convertbandwidth (Byte) from ... to Kbps The problem is, my pc using os windows 7 not linux/ubuntu I dont know how to using command ... using win7. Any other way to solved this problem?
by Lazarus777 in Programming ()
Member Avatar
Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long …
by vegaseat 1,720 in Software Development ()
Member Avatar
i installed on windows 3.5.1 latest version on windows but i am try to fail on set up module any body help me, to set up django and how to open sample program on browser
by ramsiva in Software Development ()
Member Avatar
Please help me , I need to convert this C code in Python: ...
by Lucas_9 in Software Development ()
Member Avatar
Hi there, I need some help to finish that code, In fact, there is one problem in my code : The last line, when i tried to convert a hexadecimal number in int. The problem is, I got variables containing : ff or 00 or C6 etc... And i want …
by Izio in Software Development ()
Member Avatar
I have a text file in the form like below ... I need to populate several lists from this text file. So far I have done this ... But this has several problems. One of the problem is that if I don't provide a , after all the entries, it …
by Mayukh_1 in Software Development ()
Member Avatar
I need to make multiple instances of a class, then use methods to find the output. It is straightforward to write the code in multiple lines but I need a more efficient way of doing that. Basically, here is what I want to do in a loop: ...
by hjos in Programming ()
Member Avatar
Okay so my code is almost complete but I still need one small thing that I can figure out. When running my code it will add 5 when accelerating and subtract 5 when braking, but I need it to display an error when speed >0 when braking, then reset speed …
by grand_78 in Programming ()
Member Avatar
Okay so my code works, but I need a few more requirements for it and I can't seem to get them right even though they should be pretty simple. I just need the window to display an error message when the values entered are not numerical and when the values …
by grand_78 in Programming ()
Member Avatar
The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are …
by vegaseat 1,720 in Software Development ()
Member Avatar
... I am trying to write a python code to verify for the presence of ... and corresponding ... file in the dropbox. ... This gives me the output : ... Which is perfectly fine!!! I need the similar xpath to find the ... text. The one which is below …
by Karthik_4 in Software Development ()
Member Avatar
Another application of Python module base64, this time to embed midi music data in your program. You also need the module pygame to execute this Python code. Enjoy the music!
by vegaseat 1,720 in Software Development ()
Member Avatar
Hi, I'm still practice learning Python. I have a litte homework, make Class method, Class Date and Class Delta without using import. it must be like this... ... ... ... ... ... ... ... ... must be tuple and without import. I'm using python2.7 If i using two init or …
by templar77 in Programming ()
Member Avatar
Hi I have around 20 python files. Each time I run these files in the terminal this form one after another : python a.py python b.py python c.py python d.py python e.py python f.py python g.py . . . (I have provided general file names here) This process takes lot …
by Karthik_4 in Software Development ()
Member Avatar
I have this point in (x,y) : ([27.266378342786531], [1.9505463431334713]) know I want to use this point(I have many points,I want to know how can I use this point ) to put it in the function below insted of x :(I have tried to make an array put i don't know …
by ALosh99 in Programming ()