15,181 Topics
| |
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 … | |
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 … | |
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 … | |
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? … | |
![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 … | |
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) | |
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 … | |
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 … | |
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 … | |
How can I locally save an image using its URL address? | |
What is the difference between the term Shallow copy and Deep? | |
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 … | |
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 … | |
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() | |
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 … | |
Hello everybody, I want to convert python to c but ฤฑ did not find any converter. Is it possible to convert | |
A simple way to create a toggle button for the Tkinter Python GUI toolkit. | |
What are the different file-processing modes with Python? | |
Is it appropriate to say that a function not having a return statement is valid? | |
Why the part will not have add() and remove() ways whereas Jcomponent Have add() And Remove() ways? | |
i want to display this number pattern in python, help me! 9 89 789 6789 56789 456789 3456789 23456789 123456789 | |
Can anyone help me with the process of making an executable python script in Unix? | |
Hi, i have a textfile with a string in it. The string is built like this: test =""" [ "this is a text and its supposed to contain every possible char." ], [ "like *.;#]ยง< and many more." ], [ "plus there are even newlines in it." ]""" I want … | |
What function should I use to convert JSON into Python data? | |
So I'm trying to create a UI that allows multiple buttons in the same window. All of the are toggles to control GPIO outputs to control relays. I've managed to get them to all work individually in their own files, but when put into the same file is all on … | |
I've seen the following code for binding the Escape Key to a Tkinter GUI: import Tkinter as tk def exit(): root.destroy() root = tk.Tk() root.bind("<Escape>", exit) root.mainloop() However, when I add this to my GUI program, I don't get a response when Esc key is pressed. It does nothing. Any … | |
Hello, I want help in scrapy i want scrap this page full source code as Inspect Element mode https://www.contechlighting.com/en/products/recessed-lighting/led when i use this code import scrapy class TEST(scrapy.Spider): name = "quotes" start_urls = [ 'https://www.contechlighting.com/en/products/recessed-lighting/led#t=Products&sort=%40wcs_site_tree_rank ascending&layout=card', ] def parse(self, response): filename = 'contechlighting.html' with open(filename, 'wb') as f: f.write(response.body) get … | |
Can anyone point me in the right direction? I have tried wxlistctrl, ultimatelistctrl and objectlistview, none seem to be able to allow the displayed list to be re-ordered by moving (drag n dropping) an item. Thanks. | |
hello, I am currently working on an assignment in my IPT class and I am trying to get questions from my questions box randomly. I am able to do the random function but I do not want them to repeat. My 'questions box' is a dictionary and I have also … |
The End.