-
Replied To a Post in Problem with python and SQL
@Gribouillis, do i have to add these 3 lines into the end of the "dbcreate.py"? conn.commit() cursor.close() conn.close() Is it necessary? I ask it because i see the file will … -
Replied To a Post in Problem with python and SQL
Oh yes! Thank you @Gribouillis. It works now. The man didn't type that on the video tutorial. -
Replied To a Post in Problem with python and SQL
After that, I did this one in "dbquery.py" file: import sqlite3 as db conn = db.connect('test.db') conn.row_factory = db.Row cursor = conn.cursor() cursor.execute("select * from films") rows = cursor.fetchall() for … -
Replied To a Post in Problem with python and SQL
I tried SELECT but there was no changes. First i created db with "dbcreate.py" file: import sqlite3 as db conn = db.connect('test.db') cursor = conn.cursor() cursor.execute("create table films (title text, … -
Created Problem with python and SQL
Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on … -
Began Watching Problem with python and SQL
Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on … -
Replied To a Post in Need quick help for executing a Python file in this way...
I fixed the problem myself. Thank you. -
Replied To a Post in Need quick help for executing a Python file in this way...
My code file hadn't these errors before. -
Replied To a Post in Need quick help for executing a Python file in this way...
Well, now when i type "./app3" on the terminal, i get this error: ./app3: line 6: import: command not found ./app3: line 7: import: command not found ./app3: line 9: … -
Created Need quick help for executing a Python file in this way...
Hello everybody. I need a quick help. I have a problem with running my python file code. I use Linux. I had a file with the name "app3.py" file on … -
Began Watching Need quick help for executing a Python file in this way...
Hello everybody. I need a quick help. I have a problem with running my python file code. I use Linux. I had a file with the name "app3.py" file on … -
Created What's the best Python GUI framework?
Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need … -
Began Watching What's the best Python GUI framework?
Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need … -
Replied To a Post in set an image as a Tkinter window background
This is an example code: #!/usr/bin/env python3 # -*-coding: utf8-*- from Tkinter import * root = Tk() photo = PhotoImage(file = "bg.gif") w = Label(root, image=photo) w.pack() ent = Entry(root) … -
Created set an image as a Tkinter window background
Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area. -
Began Watching set an image as a Tkinter window background
Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area. -
Replied To a Post in Problem with installing ttk module
This is a simple example: from Tkinter import ttk window = Ttk() button = ttk.Button(window, text='hi') button.pack() window.mainloop() Ande the error: Traceback (most recent call last): File "ttk.py", line 1, … -
Created How to print letters randomaticly
Hello. Imagin we have a python file with many alphabet letters like this: (Which is infact meaningful like i am a programmer) i a m a p r o g … -
Began Watching How to print letters randomaticly
Hello. Imagin we have a python file with many alphabet letters like this: (Which is infact meaningful like i am a programmer) i a m a p r o g … -
Replied To a Post in Problem with running the program
I fixed the problem. Thank you. -
Created Problem with running the program
Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that … -
Began Watching Problem with running the program
Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that … -
Replied To a Post in Breaking down a list in python
Thank you @woooee. It helped. -
Began Watching writing text from right to left
hi , I am trying to write " hi " in persian using unicodes like this : print('\uFEB3\uFEFC\uFEE1') but it prints from the left side and in reverse order like … -
Replied To a Post in writing text from right to left
Can you explaine a little more clear?! My language is Persian, what do you want to do? I did'nt understand your meaning. -
Created Breaking down a list in python
Hello! My this time question is about breaking a list. I have a list with the name favorite_movies. Here is 2 functions of all functions from the file: def add(): … -
Began Watching Breaking down a list in python
Hello! My this time question is about breaking a list. I have a list with the name favorite_movies. Here is 2 functions of all functions from the file: def add(): … -
Replied To a Post in Problem with Tkinter code (button and label)
Thanks @Gribouillis, it works. -
Replied To a Post in Problem with Tkinter code (button and label)
Oopss yes sorry, i posted an other error. This is the exact error: Traceback (most recent call last): File "real.py", line 18, in <module> btn = Tkinter.Button(window, text = 'add', … -
Created Problem with installing ttk module
Hi everybody. How can i install ttk module on linux? When i try to import and use it on my Tkinter window, the error says sth like there is no … -
Began Watching Problem with installing ttk module
Hi everybody. How can i install ttk module on linux? When i try to import and use it on my Tkinter window, the error says sth like there is no … -
Replied To a Post in Problem with Tkinter code (button and label)
Yes you are right, i should post the error too. Here is the error: Traceback (most recent call last): File "real.py", line 19, in <module> btn = Tkinter.Button(window, text = … -
Created Problem with Tkinter code (button and label)
Hello friends :) This is my code: #!/usr/bin/env python3 # -*-coding: utf8-*- def callback(): lbl.configure(text = 'button clicked!') import Tkinter window = Tkinter.Tk() window.geometry('300x300') window.configure(background = 'PeachPuff3') lbl = Tkinter.Label(window, … -
Began Watching Problem with Tkinter code (button and label)
Hello friends :) This is my code: #!/usr/bin/env python3 # -*-coding: utf8-*- def callback(): lbl.configure(text = 'button clicked!') import Tkinter window = Tkinter.Tk() window.geometry('300x300') window.configure(background = 'PeachPuff3') lbl = Tkinter.Label(window, … -
Replied To a Post in problem with creating a file
Thank you so much, were clear comments :) Thank you. -
Replied To a Post in How to call a function from Tkinter without using button
Well, with the code above, the names will be displayed on terminal window. But i want when i type **python favemovies.py view** the view function run and the names of … -
Replied To a Post in problem with creating a file
Sorry, was long part of codes but i just want to learn. I love programming specially in Python :) -
Replied To a Post in problem with creating a file
@Gribouillis, i didnt understand some details, whould you mind explaining each of them for me, please? I will put the parts i didn't understand clearly: Thank you :) #!/usr/bin/env python3 … -
Replied To a Post in How to call a function from Tkinter without using button
SO, what should i do now?! I didn't understand what should i do exactly. -
Replied To a Post in How to call a function from Tkinter without using button
One more question. I have changed the Good morning sentence with print (favorite_movies), it doesn't work i know its not correct, so how can i call this function and print … -
Replied To a Post in How to call a function from Tkinter without using button
Yes it works @sneekula, thank you so much for your help :) -
Replied To a Post in problem with creating a file
Yesssssssssssss!!! It works :) @Gribouillis, Thank you so much. -
Replied To a Post in How to call a function from Tkinter without using button
Well, i tried that. Yes, the function will be run and the Good morning message will be displayed on the shell, but i want the message to be displayed on … -
Replied To a Post in problem with creating a file
That is the main code without adding your code. -
Replied To a Post in problem with creating a file
#!/usr/bin/env python3 # -*-coding: utf8-*- filename = 'films.db' target = open (filename, 'a') import pickle favorite_movies=[] favorite_movies = pickle.load( open("films.db", "rb")) def append(): import sys movie_name = str(sys.stdin.readline()) favorite_movies = … -
Replied To a Post in problem with creating a file
Let mee add sth!! Here you see tesst.py on the error message, it's the same as favemovies.py i'm working on it. I just use test.py with the same body for … -
Replied To a Post in problem with creating a file
Well, i added your code to the end of my code, but this is the error i got: Traceback (most recent call last): File "test.py", line 12, in <module> favorite_movies … -
Replied To a Post in problem with creating a file
Well, here is a question for me.... Where should i put your codes? All of them above the first functio? I mean the first function must start from the line … -
Replied To a Post in How to call a function from Tkinter without using button
It didn't work unfortunately. Here is the error i got: Traceback (most recent call last): File "niloofar.py", line 5, in <module> tk.message() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1848, in __getattr__ return getattr(self.tk, … -
Created problem with creating a file
Hello everybody! Me again with an other question :) I have a file with a list and 3 functions in it; view, sort, append. I used pickle to save data …
The End.