-
Created taking numbers and operators out from the list to run the operation
Hello. I have a list like this: mylist = [7, "+", 2, "+", 1] I want to take them out of the list inorder to run the operation and get … -
Began Watching taking numbers and operators out from the list to run the operation
Hello. I have a list like this: mylist = [7, "+", 2, "+", 1] I want to take them out of the list inorder to run the operation and get … -
Created How to set tkinter button command to call a function from a class
Hello. I have a Class in my python file. That Class contains some functions. How can i set the command of a Tkinter butten so that call a function of … -
Began Watching How to set tkinter button command to call a function from a class
Hello. I have a Class in my python file. That Class contains some functions. How can i set the command of a Tkinter butten so that call a function of … -
Created Looking for kivy tutorials and kivy forums
I'm going to learn kivy programming language. Could you introduce some good tutorials to me please? Except the kivy.org. And also i'm looking for a good Kivy forum. -
Began Watching Looking for kivy tutorials and kivy forums
I'm going to learn kivy programming language. Could you introduce some good tutorials to me please? Except the kivy.org. And also i'm looking for a good Kivy forum. -
Replied To a Post in Drop-down menu in Tkinter
This a the first part of my code: import os import pickle DBFILENAME = 'linknames.db' loaded = True choices = [] def pathtofile(filename = DBFILENAME): folder = os.path.dirname(os.path.abspath(__file__)) return os.path.join(folder, … -
Replied To a Post in Drop-down menu in Tkinter
@vegaseat, look at line 29 of your code please. As you typed on the code, we need to have line 29 in our file from the beginning of running the … -
Replied To a Post in Drop-down menu in Tkinter
Thank you @vegaseat. -
Created Drop-down menu in Tkinter
How can i create a drop-down menu in Tkinter? -
Began Watching Drop-down menu in Tkinter
How can i create a drop-down menu in Tkinter? -
Replied To a Post in How to set command for Button wiget in Kivy language
But Tkinter is really ugly so i prefer to use Kivy, it's more beautiful than Tkinter! And also very easy to code! -
Replied To a Post in How to open and play mp3 file in python?
Thank you @vegaseat. And thank you @gribouillis for the command. And thank you all for all answers. -
Replied To a Post in How to set command for Button wiget in Kivy language
Thank you @vegaseat. I have some question again: Look at line 24. `self.label = ` what does the "self" word do here? And line 29. `def callback(self, event):` what the … -
Replied To a Post in How to set command for Button wiget in Kivy language
Well, i'm trying to learn from every where. If h find any video i watch it, i search the net and try to learn from example codes. I didn't find … -
Replied To a Post in How to set command for Button wiget in Kivy language
I think i should use `on_press` keyword, but i don't know how to use it exactly. I need a simple example. For example i want when i press the button, … -
Created How to set command for Button wiget in Kivy language
Hello! Can you give me an example of Button widget in Kivy language? I can creat the button but don't know how to use it's callback. I mean how can … -
Began Watching How to set command for Button wiget in Kivy language
Hello! Can you give me an example of Button widget in Kivy language? I can creat the button but don't know how to use it's callback. I mean how can … -
Replied To a Post in How to open and play mp3 file in python?
And also i have a question, well, i'm confused, which media player on my OS is playing the mp3 file?! -
Replied To a Post in How to open and play mp3 file in python?
@vegaseat, could you please explain this code more clearly to me?! I can't understand some parts clearly. I have written comments: import pygame as pg #here why we should type … -
Replied To a Post in How to open and play mp3 file in python?
Yes!!!!!!!!!! :) It works thank you @vegaseat. And thak you all. -
Replied To a Post in Why the kivy file doesn't work?!!
Well, i find the problem myself. The name of the file "Tutorial.kv" should be in lowercase, so i changed it to "tutorial.kv". And also there was a little problem in … -
Created Why the kivy file doesn't work?!!
Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on … -
Began Watching Why the kivy file doesn't work?!!
Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on … -
Replied To a Post in How to open and play mp3 file in python?
Thank you @JasonHippy. I'm using Linux; ubuntu. I've installed pyglet and have copied this code from the link you gave me(just changed the name of mp3 file). And there is … -
Created How to open and play mp3 file in python?
Hi. How can i open a mp3 file and play it in python? There is a mp3 file on my Linux desktop and i want to open it from a … -
Began Watching How to open and play mp3 file in python?
Hi. How can i open a mp3 file and play it in python? There is a mp3 file on my Linux desktop and i want to open it from a … -
Replied To a Post in Inserting values to sqlite table using input
Yes i understand and i tried it but i got this error: Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1535, in __call__ return self.func(*args) File "./mydb", line 45, in … -
Replied To a Post in Inserting values to sqlite table using input
No no!! wait! Look at this: def show(): import sqlite3 as db conn = db.connect('sarah.db') conn.row_factory = db.Row cursor = conn.cursor() cursor.execute('SELECT * FROM colors;') rows = cursor.fetchall() for row … -
Replied To a Post in Inserting values to sqlite table using input
It seems the table has only one row, how can i add more rows each time? -
Replied To a Post in How to send a command to the shell
Yes,thank you @L7Sqr. -
Replied To a Post in Inserting values to sqlite table using input
Thank you @HiHe, it helped me. Now there is another problem now. I have a Tkinter window with an Entry box and add button and show button. I want to … -
Replied To a Post in Inserting values to sqlite table using input
No, again with the def show(), the color will be printed in the terminal not in the label widget. -
Replied To a Post in Inserting values to sqlite table using input
Thank you @Gribouillis, it works. And thank you @HiHe for your note. Now here i have a def: def show(): import sqlite3 as db conn = db.connect('sarah.db') conn.row_factory = db.Row … -
Replied To a Post in Inserting values to sqlite table using input
The color table has only (colorname TEXT). And i have sent the error in my last post. *note:* I used the value "happy", i wanted to type a color but … -
Replied To a Post in Inserting values to sqlite table using input
Here is the error i get: cursor.execute("INSERT INTO colors VALUES (?)", (word)) ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 8 supplied. -
Replied To a Post in Inserting values to sqlite table using input
I searched that page and read all 'insert into" parts, so this code must be correct but why it doesn't work? word = 'happy' #################### cursor.execute("INSERT INTO colors VALUES (?)", … -
Created Inserting values to sqlite table using input
Hello. When we want to insert a vlue into a table in sqlite, we use this line, right? cursor.execute('INSERT INTO colors Values ("red", "blue")') As we can see above, we … -
Began Watching Inserting values to sqlite table using input
Hello. When we want to insert a vlue into a table in sqlite, we use this line, right? cursor.execute('INSERT INTO colors Values ("red", "blue")') As we can see above, we … -
Created How to send a command to the shell
Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line … -
Began Watching How to send a command to the shell
Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line … -
Replied To a Post in Problem with ScrolledText (it's scrool bar)
And How can i refresh an ScrollText widget? I have a Tkinter window with an entry box and add button and refresh button and scrolltext widget. The first time i … -
Replied To a Post in Problem with .grid() and .pack()
Another question. (for using .pack()) I want a Label to be on the top, then an Entry box under the Label and then 3 Buttons under the Ebtry box. (3 … -
Created Problem with .grid() and .pack()
Hi everybody. I have problem with .pack() and .grid(). I have to use this line: mywin.pack(fill=BOTH, expand=YES) I have used .grid every where on my file but now here i … -
Began Watching Problem with .grid() and .pack()
Hi everybody. I have problem with .pack() and .grid(). I have to use this line: mywin.pack(fill=BOTH, expand=YES) I have used .grid every where on my file but now here i … -
Replied To a Post in Problem with ScrolledText (it's scrool bar)
I wanted to start new discussion for this question but i will ask here. How can i set the size of the ScrollText widget? I have an entry box and … -
Created Problem with ScrolledText (it's scrool bar)
Hello. I have used ScrolledText in my code, the scroll bar that appears is attached to the frame and although it scrolls the text box contents, I want that it … -
Began Watching Problem with ScrolledText (it's scrool bar)
Hello. I have used ScrolledText in my code, the scroll bar that appears is attached to the frame and although it scrolls the text box contents, I want that it … -
Replied To a Post in Problem with python and SQL
@HiHe, what do you mean by "with conn:"? Can you explain it more clear please? -
Replied To a Post in Problem with python and SQL
Thank you @Gribouillis.
The End.