• Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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.
  • Member Avatar for Niloofar24
    Niloofar24

    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.
  • Member Avatar for Niloofar24
    Niloofar24

    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, …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Drop-down menu in Tkinter

    Thank you @vegaseat.
  • Member Avatar for Niloofar24
    Niloofar24

    Created Drop-down menu in Tkinter

    How can i create a drop-down menu in Tkinter?
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching Drop-down menu in Tkinter

    How can i create a drop-down menu in Tkinter?
  • Member Avatar for Niloofar24
    Niloofar24

    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!
  • Member Avatar for Niloofar24
    Niloofar24

    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.
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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, …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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?!
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to open and play mp3 file in python?

    Yes!!!!!!!!!! :) It works thank you @vegaseat. And thak you all.
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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?
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to send a command to the shell

    Yes,thank you @L7Sqr.
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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.
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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.
  • Member Avatar for Niloofar24
    Niloofar24

    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 (?)", …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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 …
  • Member Avatar for Niloofar24
    Niloofar24

    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?
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Problem with python and SQL

    Thank you @Gribouillis.

The End.