- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
15 Posted Topics
Hi, I'm pretty new to tkinter as well but you will want to make sure your "content" widget (a frame widget?) is set to expand within it's own container (ie. the root window). When you "grid" the "content" frame put sticky=N+E+W+S so the frame will fill it's container. Then, change …
[CODE]import random #i think you wanted strings here r = "rock" p = "paper" s = "scissors" #a list of the weapons weapons = [r, p, s] #you need to indent everything you want looped while True: #raw input is usually used instead of input - see the docs user_choice …
Let me help you to find your first big step forward: type "python count letters in string" in google and click on the first link.
Your code works fine for me on both windows and linux. You probably had a problem on a previous run and the socket hadn't closed. They usually close after a while, or reboot your system.
This is how I would do it... slow and step by step. [CODE]import os mp3ext = ".mp3" indirname="c:\\YourInPath" outdirname="c:\\YourOutPath" output_path = '"%s\\%s"' % (outdirname, "joined mp3s.mp3") app_name = '"C:\\program files\\vidtools\\eac3to.exe" -log=nul ' file_list = os.listdir(indirname) #get the mp3 list, put them in a list with the quotes and all mp3s …
I'm not a very experienced programmer like others around here but I took a look at this since there are no other answers. I was able to accomplish what you describe in the following manner, no guarantees that this is a recommended way to do this and obviously there is …
I'm working on a GUI app with tkinter (which I am fairly new to). It's for comparing the clocks on two computers across a network. It uses callbacks (scheduled using the "after" method of the root window) to update text and canvas widgets in a GUI. The canvas widgets are …
Hello everybody! I'm trying to produce a timestamp (system time) in windows (Python 2.7) with resolution equal to or better than microseconds. Calling time.time() repeatedly in a loop it appears it only updates in approximately 0.01 second increments. Using datetime.datetime.today() seems to show similar results. Anybody have a possible way …
So, don't take this the wrong way, I'm just curious: what would be the wider academic value of writing a program that encrypts with an existing technique (outside of a greater personal understanding)?
Well, I'm sure there are quite a few ways with pros and cons to each, but my computer was able to run this test code (below) with lists containing 8000 random values (each less than 10000), in less than 1 minute. If I needed to do this with really big …
Hello... I've been working on a simple server using the sockets module and threads (just for fun btw ;p). I want to be able to connect to it by specifying a "channel" and then anything the client sends is recieved by all clients connected to the same "channel". Now I'm …
Hi everyone.... I was interested in limiting my home network to only a few specific mac addresses, but the ease of spoofing a mac address got me thinking... If I were to make a simple program that sends out a message/probe from each computer and expects a response from others …
[QUOTE] "i jst came up wid an idea n i dnt knw how to proceed furthr....i'd lyk to encrypt data in such a way dats its decrptd in stages. initial stages when overcome wud show irrelevant dat(nt garbage)xtractd frm d original data...decrption methods wud vary in each stage.... more complicated …
Hello, sorry if this is a silly question, tried googling but only found an endless number of How-to-setup-your-router pages.... So, the question has to do with the http authentication used to login and view/change settings on your router. I wrote a small application in python to log in to my …
Hello, thanks for reading my post. My troubles have to do with using a python script to gather information from a web page. I'm using the 'IEC' (Internet Explorer Controller) module to handle the 'COM' stuff for me. The script looks like this: [code=python] import IEC from BeautifulSoup import BeautifulSoup …
The End.
NewbieXcellence