Forum: Python
02-23-2011, 06:24 PM
|
|
Replies: 0
Views: 216
Convert Bin to Hex
hi, i have a script that converts hex to bin and bin to hex back. however, when converting back to hex the leading 0s are truncated. how to maintain the leading 0s? i'm using Python 2.5 and Win...
|
Forum: Python
02-23-2011, 06:24 PM
|
|
Replies: 0
Views: 238
Datatype
which data type use in paythone
|
Forum: Python
02-23-2011, 06:24 PM
|
|
Replies: 0
Views: 196
restarting a frame
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...
|
Forum: Python
02-23-2011, 06:24 PM
|
|
Replies: 0
Views: 206
Break will not execute
Hi everyone! New here and to Python. I'm having trouble with my break statement executing and cannot figure out why. I'm learning to write to files and want the loop to break if the user hits enter....
|
Forum: Python
02-23-2011, 06:24 PM
|
|
Replies: 0
Views: 1,180
Insuficient bytes read
I have code the goes to a page and downloads information on its update. Every once in a while it errors out with <div class="codeblock"> <div class="spaced"> <div>Python Syntax (<a href="#"...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 502
Need help with password generator
I have to make generetor and ouput must be all combinations.And they are written to .txt file and then user input search from that file. Anyone can help me to wrote that program?
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 267
Towes of Hanoi help (Dont understand)
Hey, does anyone think they could explain how this code works? <div class="codeblock"> Python Syntax (Toggle Plain Text (http://www.domainnameforum.org/#))
<div id="code1413824412_1">
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 261
manipulating user input strings
I'm trying to put together a code that will basically take a user input string and reprint every 3rd character. i.e. if a user inputs "Superman" it should be reprinted like "S e a" I'm sure this...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 261
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 263
help with text (beginner)
Hello, I think this is a pretty simple problem but I just don't know where to start. I have a text file: 1 00:00:34,000 --> 00:00:36,135 Thank you, Detective. 2 00:00:42,714 --> 00:00:45,794
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 279
wx.ListBox selection to call function?
I have a listbox and what I basically want to achieve is as I click a value within the listbox I want the value clicked to be passed to a function. I could easily do this using a button and...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 244
Python palindrome problem!!help!!!!
I am a beingger for using Python,now I am doing a palindrome program,but I have tried many time it still doenst work, can anyone help me to fix it??Thanks a lot!!!!! Here is the code: <div...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 271
Printing digits in their oder
So yeah, i figured out how to write program that will print digits in reverse(with small help of the internet, put i get it). Anyway i want to write program that will print digits in their regular...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 253
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 264
Populating Python variables from SQLite fields
I am trying to understand using an SQLite database in Python and can grasp running queries, but would like to understand how to populate Python variables from SQLite fields. Here is my sample Python...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 262
Filesystem Metadata Indexing
Hi. I write really terrible python, sort of like using crayons in art class. I have a couple questions. First is: where is the best forum for python newbies to learn how to write better code...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 258
Break a for loop in Tkinter
I am trying to make a basic gui in tkinter for one of my python scripts. I have gotten it to work but I need a way for the user to break the main loop of the script by clicking a button. The loop is...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 219
Pygtk + Glade self auto refreshing labels
Hello. First of all I am a newcomer to programming languages world and of course very new to Python. In my job, we are using Linux systems. Time to time I need to check some command and script...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 240
Problem with console logger
Hi, I get the log messages 'twice' on the console and only once in the log file. Can any one tell me the reason for this duplication on console? here is how I have set the logger: import logging...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 130
Sequential sorting
Help with passing the arguments. This program is supposed to ask for how many numbers do you want. I would stick with ten. Then how many numbers in a randrange (upper limit) Please choose 100...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 121
Help getting started with my program
Hi all, I'm trying to make a Poker program. This is what I have so far but I'm not sure how I can check to see if the deck is a Royal Flush, Straight, etc. Could anyone help me get started? This...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 115
Python progmas issue
Hello daniweb community, i'm new to all this and i'm pretty happy that found this. Anyway i'm having sevral issues. Frist one is: my Python GUI (IDLE) won't open program. <div class="codeblock">...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 121
float conversion to string rounding inconveinience
I want to represent money which is usually to 2DP and I add up items using float values but whenever I have a value that is similar to the one used it only converts it to a string to 1DP. This seems...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 114
Simple ATM Python program question
I am trying to figure out what I am missing to get this to work. I am not sure how to get the account balance to change as the user continues to do more transactions. Here is the code I've written so...
|
Forum: Python
02-22-2011, 03:34 PM
|
|
Replies: 0
Views: 120
Csv style text file to list/array
Hi python fans, hope someone can help me with this. I have a text file the result of another program which looks like: 2,6,3,5,0 4,0,2,5,2 5,7,9,1,0 4,6,8,2,5 2,7,9,1,6
|