-
Replied To a Post in There is an elephant on the loo!
Florida-based Project Cure has raised more than $65 million since 1998, but every year has wound up owing its fundraiser more than what was raised. According to its latest financial … -
Replied To a Post in There is an elephant on the loo!
Scientists believe that a mutation in a key taste receptor has prevented cats from being able to taste sugar. -
Replied To a Post in Memorable Quotations
"In this world nothing can be said to be certain, except death and taxes." ... Benjamin Franklin -
Replied To a Post in Memorable Quotations
"Read my lips: no new taxes." ... George H. W. Bush -
Replied To a Post in Memorable Quotations
"Nobody taxes the sun yet." ... Bonnie Raitt -
Replied To a Post in Random Facts
The US Internal Revenue Service (IRS, Tax Authority) estimates that $21 billion fraudulent tax returns will be paid to criminals that use stolen information (name, birthday, social security number). By … -
Marked Solved Status for 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 Drop-down menu in Tkinter
I think it's called an OptionMenu ... ''' tk_OptionMenu1.py using Tkinter's Optionmenu() as a combobox allows one item to be selected use a button to show selection ''' try: # … -
Replied To a Post in Find coordinate of pixel based on color
You might want to check PIL/pillow at: http://pillow.readthedocs.org/en/latest/ -
Replied To a Post in I started to learn python today and i need your help
The Python manual at https://www.python.org/doc/ contains a tutorial you may play with. Use the IDLE IDE that comes with your Python installation and start typing the code and try it … -
Edited "Hello World" Fun
I thought it would be fun to code all the different ways to show Hello World on the display. Let's start simple ... `print("Hello World")` Can anybody print out "Hello … -
Replied To a Post in "Hello World" Fun
Oh Gee, the response is overwhelming, here is one GUI attempt ... # for Python2 change tkinter to Tkinter import tkinter as tk root = tk.Tk() mytext = " Hello … -
Replied To a Post in What does brackets in python mean?
abs(x) where x is an argument for the function abs() For example ... x = -123 print(x) print(abs(x)) From the manual ... abs(x) Return the absolute value of a number. … -
Replied To a Post in Memorable Quotations
Life's journey is not to arrive at the grave in a well preserved body, but to skid in sideways torn and taddered yelling "Oh shidt what a ride!" -
Replied To a Post in Random Facts
Growing up ... You believe in Santa Claus You don't believe in Santa Claus You are Santa Claus You look like Santa Claus -
Replied To a Post in How to set command for Button wiget in Kivy language
As a GUI toolkit Kivy is pretty clumsy. I would use it only if you want to use your touch sensitive screen or for Android applications. -
Marked Solved Status for 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 set command for Button wiget in Kivy language
You need to learn the basics of a Python class! bind() creates an event that is send to callback() I don't use .kv files for simple programs, just another special … -
Replied To a Post in How to open and play mp3 file in python?
Line `pg.mixer.init(freq, bitsize, channels, buffer)` initializes the pygame mixer (player) with the given arguments `while pg.mixer.music.get_busy():` is the pygame event loop These lines explain themselves: `pg.mixer.music.load(music_file)` `pg.mixer.music.play()` -
Replied To a Post in How to open and play mp3 file in python?
in line `def play_music(music_file, volume=0.8):` volume=0.8 is the default volume in case you did not supply a value Basic Python knowledge! -
Replied To a Post in How to set command for Button wiget in Kivy language
This is how I would do it ... ''' kivy_button_label101.py create a touch sensitive button with Python module kivy add a label to show action info: http://kivy.org/docs/api-kivy.uix.button.html http://kivy.org/docs/api-kivy.uix.label.html http://kivy.org/docs/api-kivy.uix.boxlayout.html ''' … -
Revoked Solved Status for 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 "Hello World" Fun
Who ever heard of Caesar Cipher ... encrypted = "Ifmmp!Xpsme" print("".join(chr(ord(x)-1) for x in encrypted)) Anybody ready to use a GUI with a fancy font? -
Replied To a Post in "Hello World" Fun
Mildly more complex using the ASCII values ... hello_list = [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100] print("".join(chr(x) for x in hello_list)) -
Replied To a Post in "Hello World" Fun
Now for something completely different, slicing ... `print("dlroW olleH"[::-1])` -
Created "Hello World" Fun
I thought it would be fun to code all the different ways to show Hello World on the display. Let's start simple ... `print("Hello World")` Can anybody print out "Hello … -
Marked Solved Status for 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 … -
Marked Solved Status for 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 set command for Button wiget in Kivy language
Which tutorial are you using? -
Replied To a Post in What are you eating/drinking right now?
English muffin with strawberry/rhubarb jelly and a mug of java/latte. -
Replied To a Post in Java
Java is very well entrenched in the CS teaching apparatus. It will take a while for this to modernize. -
Replied To a Post in Islamic State down: Anonymous drops social media bomb on ISIS
The U.S. government is creating a new agency to monitor cybersecurity threats. Let's hope these experts will take care of the abuse of the social media by Islamic State. Actually … -
Replied To a Post in Shoes!!!!
@iamthwee my webroot antivirus program tells me not to go to this website! Considers it unsafe and loaded with malware. -
Replied To a Post in Raspberry Pi LED control (Python)
Not sure if the arduino allows Python as conrol language. -
Marked Solved Status for 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 Problem with .grid() and .pack()
To create the layout you want use frames ... ''' tk_frame_pack101.py use Tkinter frames for different pack() layouts ''' # for Python3 change Tkinter to tkinter import Tkinter as tk … -
Marked Solved Status for I can`t figure out where I am going wrong in calculating BMI
I cant figure out what arguements to use or really even what arguements are. #Template for Program 2 #The keyword "pass" is a placeholder that does nothing #Move each line … -
Marked Solved Status for 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 … -
Replied To a Post in Inserting values to sqlite table using input
Well, I am glad we solved this beginner problem. -
Replied To a Post in How to open and play mp3 file in python?
Sooner or later you will use the pygame module anyway ... ''' pg_playmp3f.py play MP3 music files using Python module pygame pygame is free from: http://www.pygame.org (does not create a … -
Replied To a Post in Why the kivy file doesn't work?!!
One of the zillion rules of Kivy: Kivy looks for a .kv file with the same name as your App class in lowercase (minus “App” if it ends with ‘App’. … -
Replied To a Post in Raspberry Pi LED control (Python)
The new model Rapberry Pi 2 has just come out. It is now a quad core 900 Mhz CPU with 1 GB RAM running about 6 times faster than the … -
Replied To a Post in Random Facts
Anthem has just upped the count to 80 million personal information records. Phishing e-mail to obtain credit card numbers and bank accounts is already in full swing using the stolen … -
Replied To a Post in Shoes!!!!
The SharpDevelop IDE is a drag and drop GUI builder that writes most of the code for you either in C# or IronPython. With Mono it should work on Linux … -
Replied To a Post in What movie have you seen lately?
Another playful movie is "Sideways" that takes place in the California wine country, close to where I live. Sentimental and funny too! So once a year I watch it. -
Replied To a Post in What movie have you seen lately?
I like Helen Hunt for some odd reason, so I watched "Twister". Some nice action near the end. -
Replied To a Post in There is an elephant on the loo!
According to Bloomberg News, in 1976 Apple co-founder Ron Wayne sold his 10% stake in the company for $800. If he would have held on to the stock it would … -
Created Multiline temperature plot (Python MatPlot)
I used csv data readily available from http://www.weatherdatadepot.com/ to create a multiline plot of the average monthly temperatures of a given location. -
Replied To a Post in Is Tkinter possible to playing a video in format .avi or .mp4?
Generally you use the PyGame module to play sound and movies with Tkinter. See ... http://www.pygame.org/docs/ref/movie.html -
Replied To a Post in A grade input program
lukerobi's code would be a good start.
The End.