- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
Once harm has been done, even a fool understands it. -- Homer |
|
Re:
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 = … |
|
Re:
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 = [] … |
|
Re:
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 … |
|
Re:
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. |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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!! |
|
Re:
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 … |
|
Re:
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 … |