15,190 Topics

Member Avatar for
Member Avatar for vegaseat

An example showing how to use the wx.media.MediaCtrl() widget to play MIDI, MP3, WAV, AU, AVI and MPG audio and video files. I have only tested it with Windows. If you are very ambitious, you could use a random graphics display with the sound, or tie the slider position to …

Member Avatar for bunkus
2
4K
Member Avatar for tjsilver

Hello, I found this code in a thread from about 18 months ago in a post by 'woooee' - [CODE]def func_1(): print " func_1 test" def func_2(): print " func_2 test" def func_3(): print " func_3 test" def func_4(): print " func_4 test" ##---------------------------------------------------------------- ## dictionary = list of function …

Member Avatar for August.Garcia
0
3K
Member Avatar for Kim_11

I've been tasked with this assignment: > In a graphics window, you are to draw an outdoor scene containing a house. > Your drawing should include at least the following shapes: three rectangles, two lines, one circle and one text label > Your picture should not be boring black and …

Member Avatar for vegaseat
0
6K
Member Avatar for tony75
Member Avatar for Reverend Jim
0
413
Member Avatar for Harshali_1

Hello everyone, I am a learner, who found this helpful community where one's query is satisfied in so many great ways. I have one such query regarding Recursion. Can anyone help me to know about the effects of Recursion in Python? Does it cause any trouble?

Member Avatar for sritaa
0
475
Member Avatar for santhosh_8

**Create a student class which has following functionality:** - Initialise a student with mandatory parameters - Create a student with name, email and phone number - Add a list of subjects based on which class he is - Add a function to calculate his percentage based on marks scored ***I …

Member Avatar for Reverend Jim
-1
3K
Member Avatar for Mohan_1845

I couldn't install the tensorflow framework in my laptop.can anyone help me out in installing tensorflow for doing my project on deep learning techniques.

Member Avatar for rproffitt
0
326
Member Avatar for dukoolsharma
Member Avatar for vegaseat

This short Python code gets the local time from the PC as a formatted string using time.strftime('%H:%M:%S'). The time string is displayed in a label using a larger font. A recursive function checks the time five times per second, and updates the time string, if it has changed. Five times …

Member Avatar for Vinay_17
2
26K
Member Avatar for Deepak.G

Hi everyone, i am in need of ideas and want a bit of advise...i want to make a serial port sniffer which will be able to read the data goin in and out of the serial port between two other programs..... im not sure how i will be able to …

Member Avatar for vegaseat
0
5K
Member Avatar for Sondos _1

Hi, I have created a quiz whixh displays an artist and the first letter of their song and the user has to guess the song. However, I need help looping the quiz so it displays another artists if the user has anwered correctly after their first or second guess. Thank …

Member Avatar for Reverend Jim
0
1K
Member Avatar for overwraith

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for sarfrazashfaq

HI All! I need to have some help. I have a python function name is abc.py and variable is declared in abc.py, variable name is 'uname'. How can i call variable name 'uname' of abc.py in my batch file name testing.bat and get uname value in my batch testing.bat file? …

Member Avatar for jaakdentrekhaak
0
5K
Member Avatar for vantage23

![code_error.png](/attachments/large/4/0618569524bcc2abec40e81e5691d469.png) I'm relatively new to python, and I'm trying to create a pokemon battle. This error has come up, I've looked up solutions but it hasn't helped me as I can't understand it properly. Please help, I'd like to learn especially since I'm planning on taking IT and computer science …

Member Avatar for vantage23
0
4K
Member Avatar for vishesh_1

i am here ![Screen_Shot_2018-12-28_at_6_47_38_PM.png](/attachments/large/4/237abffd6067e29aa8bd690c2c1a74ec.png) i want to merge all rowsof 3 rd col so that output looks like... end result should be.... ![Screen_Shot_2018-12-28_at_6_49_34_PM.png](/attachments/large/4/92adfc647020ab9265f7d7248758c82f.png)

Member Avatar for vegaseat
0
291
Member Avatar for Hicham_4
Member Avatar for vegaseat

Let's say you want to send a short private message to your friend, but don't want grandma to snoop around and find it. One way is to use the Python Image Library (PIL) and hide the message in a picture file's pixels. Just looking at the picture you will barely …

Member Avatar for JamesCherrill
5
10K
Member Avatar for Mike_63

Hello, I need help on getting solution for the below python code. The code gives the required output which is that it dispaly number of prime number that user wants. if user inputs 4 Actual Output: 2, 3 , 5 , 7 The main question is that I do not …

Member Avatar for vegaseat
0
634
Member Avatar for SaRaVaNaN_2

import csv import xlwt import os import sys #import openpyxl # Look for input file in same location as script file: inputfilename = os.path.join(os.path.dirname(sys.argv[0]), 'book2.txt') # Strip off the path basefilename = os.path.basename(inputfilename) # Strip off the extension basefilename_noext = os.path.splitext(basefilename)[0] # Get the path of the input file as …

0
354
Member Avatar for HimaniBansal
Member Avatar for Sheetal_1
Member Avatar for sabrin4

Initially, I've a simple program to print out the whole output to the console. **Initial Code to display output in the console only** import os, subprocess print("1. Before") os.system('ver') subprocess.run('whoami') print('\n2. After') **Output in console** 1. Before Microsoft Windows [Version 10] user01 2. After Then, I decided to have a …

Member Avatar for rproffitt
0
517
Member Avatar for Isaiah_4

You must then use a loop (for or while) to find the sum of all the numbers in the geometric sequence of 3 less than N. The geometric sequence of 3 looks like this 1, 3, 9, 27, 81, 243, ... where you start with the number one and multiply …

Member Avatar for vegaseat
0
460
Member Avatar for tony75

Hi How to read the second line in text file(MyData,txt) #MyData.txt line1 line2 line3 line4 line5 #read the second line f = open ("MyData.txt","r") for line in f: if line == 2: print line else: print "somthing wrong !" f.close()

Member Avatar for rproffitt
0
224
Member Avatar for Taran_1

I have a bank system that's using a tkinter class to run the program with a graphical user interface looking like this: LARGE_FONT = ("Verdana", 12) class BankSystemGUI(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) container = tk.Frame(self) container.pack(side="top", fill="both", expand=True) container.grid_rowconfigure(0, weight=1) container.grid_columnconfigure(0, weight=1) self.frames = {} for F …

Member Avatar for Taran_1
0
519
Member Avatar for simm3

Hello everybody, I want to convert python to c but ı did not find any converter. Is it possible to convert

Member Avatar for Reverend Jim
0
346
Member Avatar for HiHe
Member Avatar for martineau
1
21K
Member Avatar for Sheetal_1
Member Avatar for HimaniBansal
Member Avatar for JamesCherrill
0
410
Member Avatar for dukoolsharma
Member Avatar for JamesCherrill
0
351

The End.