- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, … |
|
Hi guys, So I'm busy writing an application that needs to update a list from the web after a certain amount of time. main.py file class Gui: def ...... def ...... def ...... def on_update_click(): update() app=Gui() Gtk.main() So when the program loads up, user will click the update button … |
|
Hi guys. I'm trying to access some User interface files (.glade) which are in a subdirectory. from gi.repository import Gtk import os path=os.getcwd+'/ui/main.glade' def hurr(): builder=Gtk.Builder() builder.add_from_file(path) # get UI file window=builder.get_object('winlet') window.show() hurr() Gtk.main() This works if i use only 1 glade file, but i have multiple .glade files … |
|
Hi guys. So, I'm trying to read data from a database and displaying in a GtkTreeview. I used glade to design the GUI when i click on the button (view movies) the list of movies should display as a list. def on_btnmovies_clicked(self,widget,data=None): store=self.builder.get_object('listmovies') connect=sqlite.connect('movies.db') db=connect.cursor() db.execute("SELECT * FROM movie") for … |
|
So i was busy playing around with the python module MySQLdb and looking at sql injection. [CODE] import MySQLdb def hack(name): db=MySQLdb.connect('xxx','xxx','xxx','xxx') cursor=db.cursor() sql="SELECT * FROM PLAYERS WHERE NAME = %s" %(name) print sql cursor.execute(sql) print cursor.fetchall() [/CODE] i entered Hack("'pete' OR '1'='1'") results were: SELECT * FROM PLAYERS WHERE … |
|
Hi guys I'm trying to place a user input into a database(mysql) [CODE]newplayer=raw_input('Please enter a new player name: ")[/CODE] the sql commands to insert data is [CODE]sql="""INSERT INTO PLAYERS(NAME) VALUES('newplayer')"""[/CODE] When i check the database it shows newplayer instead of what the user has entered. any ideas of how i … |
|
Re:
Hope this was not posted earlier. Roshan D'Mello (QA Tester) Developer (Mukesh Thakur) Roshan D'Mello: Hey Mukesh, there is a bug in your code. Type a text in username text box and press enter. Beep sound doesn't appear. Mukesh Thakur: How can that be a bug? There is no requirement … |
|
Re:
What is it that inspires you to continue programming every day or every week. Is it work or results or something else you would like to share. So please share as I'm sure this will be interesting. |
|
Re:
What do you do before you start coding/ review/ learn your language or code? what are some websites enhance your brain, or get your brain ready to review. |
|
Hi guys, I'm having trouble with this particular code [code=c] #include <stdio.h> int main() { char aChar; printf("Please enter a character: "); scanf("%c",&aChar); while (aChar!='x') { printf("The Letter is %c\n", aChar); printf("Please Enter another character: "); scanf("%c", &aChar); } return 0; } [/code] The output is: Please enter a character: … |
|
Re:
Hey guys just wanting to get an idea of peoples opinions on Open-Source software as i know many people have very different opinions. The sort of thing im looking for is: Advantages for your personal use Disadvantages for your personal use Whether you agree with Open-Source If you ever use … |
|
Re:
It seems thousands of people in china , Russia ,etc are claiming to see 2 suns in sky , what do you guys think about this event ? Source : [url]http://www.msnbc.msn.com/id/41927089/ns/technology_and_science-space/[/url] |
|
Re:
We use bumper stickers to proclaim our political/religious/moral/immoral/humorous and other feelings. If you could post a new bumper sticker on your vehicle every day, what would it say today? (Please, one post per day) [b] Do you drive in a phone booth? Hang up NOW! [/b] |
|
Re:
I have downloaded the VLC tar.bz2 file and I want to install it onto another Ubuntu machine. How I can install offline ? |
|
Hi guys Everytime i use sudo in the terminal i get "sudo: unable to resolve host legacy" I had a look at /etc/hosts file, all i have is this 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 … |
|
Re:
Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are … |
|
Re:
Hey !can somebody help me how to create a incremental search(numerical method) program using python! |
|
Re:
hi, i found a module called xlwt ([url]http://www.python-excel.org/[/url]) that can write to Excel. i want the code to read from a file (robert.txt) and then write to excel in a column. however, it seems that the output from this code is that it only writes to one cell in the … |