Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
89% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #13.1K
Ranked #2K
~39.8K People Reached
Member Avatar for vegaseat
Member Avatar for Reverend Jim
15
13K
Member Avatar for TECH COFEE

from tkinter import * app = Tk() label1_text = StringVar() part_label = Label(app, bg='#dfe3ee', text='Check1', font=('bold',12), pady=10, padx=20) part_label.grid(row=0, column=0, sticky=W) label1_entry = Entry(app, textvariable=label1_text) label1_entry.grid(row=0, column=1) label2_text = StringVar() part_label = Label(app, bg='#dfe3ee', text='Check1', font=('bold', 12), pady=7, padx=20) part_label.grid(row=1, column=0, sticky=W) label2_entry = Entry(app, textvariable=label2_text) label2_entry.grid(row=1, column=1) label3_text = …

Member Avatar for zentraders
0
46
Member Avatar for gneisler

I can not get this program to list all of the contact names, it just list the first one. ##!/usr/bin/evn python3 # # Contact Manager Program # import csv FILENAME = "contacts.csv" def write_contacts(contacts): with open (FILENAME, "w", newline="") as file: writer = csv.writer(file) writer.writerows(contacts) def read_contacts(): contacts = [] …

Member Avatar for Anthony_49
0
2K
Member Avatar for Reverend Jim

I'm hoping that people will post unusual or little known facts here. It would be proper to include a link to a source for confirmation. Here's a start. Speedy Gonzales was banned by the Cartoon Network for being an offensive stereotype, only to be returned after mass protest by the …

Member Avatar for John_smith
10
21K
Member Avatar for woooee

There aren't that many, and of course this is more for entertainment. I will start it out 1. You didn't post a complete, working example to a homework problem that can be copied, pasted, and handed in.

Member Avatar for almostbob
0
262
Member Avatar for stefh

Hi every one! :) Based on the example of StyledTextCtrl of the wxPython demo i managed to write a small application intended to Php code writing. Does anyone know how to set styles for Php codes? I found it's necessary to use SetLexer(stc.STC_LEX_HTML) because STC_LEX_PHP is deprecated. But i have …

Member Avatar for stefh
0
429
Member Avatar for Archenemie

I've tried every way I can possibly see to try and convert the value from the numctrl to a decimal but the problem lies with the retrieved value being a float. I cant covert the float to a string first because it looses the trailing 0 in values such as …

Member Avatar for zentraders
0
292
Member Avatar for Thropian

I made a little python code that makes a ball bounce around the screen. Every time you left click it makes another ball. when you right click it clears the screen but you can't spawn more balls afterward... any help (python, tkinter) [CODE]from Tkinter import * import time import base_translate …

Member Avatar for Thropian
0
1K
Member Avatar for qingmui

I dont know how to start. I learn python by myself, hopefully i can solve this problem. but i think i need your guys help A palindrome is a sentence that contains the same sequence of letters reading it either forwards or backwards. For example "racecar". Write a recursive function …

Member Avatar for vegaseat
0
765
Member Avatar for James0l9l

The first time my code loops through my nested while loop it works. But the second time it doesn't- I don't know why. Could someone tell me the reason. [CODE]m = [['__', '__', '__'],['__', '__', '__'],['__', '__', '__']] z=1 count=9 f=[0,2] from random import choice w=choice(f) from random import choice …

Member Avatar for woooee
0
99
Member Avatar for beggers23

I need to write a Python Turtle graphics program to output an n-pointed regular star, where n is an odd integer from 5 -to- 99 input by the user in answer to a question prompt. Also, my program should NOT contain separate code for each different star please help! ASAP!!

Member Avatar for beggers23
0
102
Member Avatar for HoneyBadger

Hi guys, I am trying to iterate through a list. This is my code: [CODE] #assume this is the list: list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] def iter_list(a): for s in a: return s #here it is when it runs: print iter_list(list1) a [/CODE] why doesn't it …

Member Avatar for HoneyBadger
0
109
Member Avatar for kjock002

i'm writing a program that reads the lines of a file. each line has a name and and number separated by one space. i want to split the string but i only want the number because i'm using it in calculations. i've skimmed through the python docs and i'm still …

Member Avatar for TrustyTony
-3
230