Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
71% Quality Score
Upvotes Received
7
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
2 Commented Posts
~20.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for DragonMastur

I am trying to convert a file to a dictionary here is the contents of the file, Name: DragonMastur; Hand: None; Inventory: {"Gold": 0, "Brush": 0, "Twig": 0, "Sapling": 0, "Metal Axe": 0, "Grass": 0, "Metal Pickaxe": 0, "Metal": 0, "Log": 0, "Diamond": 0, "Stick": 0, "Stone": 0, "Wheat": 0, …

Member Avatar for Gribouillis
0
340
Member Avatar for DragonMastur

It could be simplifide more, I know. I was doing it as an exersise so its rough and skecthy. But it's workable, I tested it more then 50 times.

Member Avatar for Slass33
0
528
Member Avatar for vegaseat

This is the updated version of the Tiny Tkinter Calculator. It has more power, since you can type in functions contained in the Python math module then press the equals key. You can then move the result into memory for other calculations. The code is written in OOP class style …

Member Avatar for vegaseat
4
2K
Member Avatar for Atul_4

Hi is here any one who can tell me that how can i generate the licence key or any other things for securing my client server program please help me

Member Avatar for snippsat
0
636
Member Avatar for DragonMastur

I would like the widgets on the window to expand as you expand the window. I know you can do it with the pack method but I'm using the grid method to arange my widgets. Pack Method: label = Label(root, text="Some Text") label.pack(expand=1, fill=BOTH) Grid Method I'm using: self.inventoryLabel = …

Member Avatar for woooee
0
6K
Member Avatar for sbaw

Hi I am currently using pyinstaller 2.1 with python 2.7. I am making modifications to "TI's MSP430 Tools (Python scripts and library)" which allows the update of the MSP430 firmware over USB. Specifically, I have made some modifications to the top-level script and when I run the script it works …

Member Avatar for megaflo
0
1K
Member Avatar for BustACode

Note: In Python 2.7 use: `from __future__ import print_function` to use examples. In Python, by default, the key and value pairs in a dictionary are stored as hashes, therefore dictionaries do not retain the order in which values were added, and cannot be ordered. v_Dict ={} v_Dict["First"] = 99 v_Dict["Second"] …

Member Avatar for DragonMastur
1
463
Member Avatar for DragonMastur

I needed a calculator and I didn't want to use google since my internet is slow. So I made one! Here it is. Working with it is simple. Use the number and operation keys("c" for clear, "p" for pi, and "s" for sqrt) as well as the return and enter …

0
686
Member Avatar for DragonMastur

karmstrong ask in the Python chat if any one was farmilar with converting a for loop in C to Python. Here is a program in python that will do it for you! Thank You!

Member Avatar for vegaseat
0
804
Member Avatar for DragonMastur

I made a little py editor because I didn't want to go to all the troble of installing an idle, but I didn't like notepad either. Here it is!

Member Avatar for DragonMastur
3
311
Member Avatar for Jalcock501

Hi Guys, I've been asked to create a GUI to output all the information gather by the program I currently have, however I'm new to using Tkinter and was wondering if someone could possible help... #!/usr/bin/python """ header comment section ****** file: M:\testPCAN\miketst.py ***** END of header comment section """ …

Member Avatar for woooee
0
568
Member Avatar for Irka

Hello! I was wondering if anybody could help me with something. I'm writing off-line banking application. I already have a code in Python and now I need to write window aplication for it. How should I begin? I wrote some simple code for main window in PyQt. But I dont …

Member Avatar for DragonMastur
0
339
Member Avatar for Mark54

Hello, again, people. You helped me to install Python on my Desktop, and now I cannot get it running on my Laptop… same as the Desktop… Win 7, 32-bit, SP1. I think I did the same procedures, but it wouldn’t work. So, I UN-installed Python. Then re-installed it. Same problems… …

Member Avatar for DragonMastur
0
278
Member Avatar for Riya_2

Write a function named repeatCount(). The function repeatCount() takes two string parameters: --> the name of an input file and the name of an output file. The function repeatCount() should read each line of the input file, identify the number of words on the line that occur more than once, …

Member Avatar for DragonMastur
0
304
Member Avatar for Henry_5

I am implementing the last feature of my Python Checkers Game, which is to require the user to make multiple jumps. For captures, I do the following: 1 Check if the move is valid: 2 self.validatedMove = True (The move that has been made is valid.) 3 self.capture() (Captures the …

Member Avatar for DragonMastur
0
785
Member Avatar for vegaseat

Well I done it! Got bored after the holidays and bought a Raspberry Pi credit card sized computer ($35), the least expensive LED TV and a Logitech wireless Keyboard/Mouse combo. The way I ordered the kit it cost almost twice as much, but it came with a good 2.5A powersupply, …

Member Avatar for vegaseat
0
653
Member Avatar for DragonMastur

I am try to make a program that alows the user to input their username and password to recive a set of options. Right now the options are to look at a file or quit. In order to complete it I need to know how to turn of the visability …

Member Avatar for DragonMastur
0
512
Member Avatar for Kai_Chang

Well this is my basic code for my RPG, can I have help improving it? import cmd import json from rpg_data import * class RPG(cmd.Cmd): def do_n(self, line): try: Me.location = Me.location.exits["north"] except: print("You can't go north") def do_s(self, line): try: Me.location = Me.location.exits["south"] except: print("You can't go south") def …

Member Avatar for vegaseat
0
273
Member Avatar for Andrae
Member Avatar for Andrae
0
401
Member Avatar for bikash_2

` #Author : Bikash Guragai #versione : 1.0 #email : bikashguragai@gmail.com or bikashguragai@programmer.net import random print ("Hello and welcome") Name = input("What is your name: ") print ("Nice to meet you",Name) ok = input("Click enter to move on") play = input("Lets play a game") b = input("Think of any Any …

Member Avatar for DragonMastur
0
196
Member Avatar for DragonMastur
Member Avatar for DragonMastur
0
405
Member Avatar for DragonMastur

Is it posible to have an optional veriable in a funtion? Such as this: >>>def Say(msg, (optional)): >>> print msg >>> print optional >>> >>>Say('hi', 'option') hi option >>>Say('not') not If so How?

Member Avatar for DragonMastur
1
364
Member Avatar for DragonMastur
Member Avatar for RichardGalaviz
0
136
Member Avatar for frankie198

I only started learning Python a few days ago, so as a beginner, what IDE should I be using? Should I just start with IDLE, then move on to something else when I'm more advanced? I've been using Pycharm for the past few days, I didn't know if that's an …

Member Avatar for Jack_9
0
844
Member Avatar for DragonMastur

I want to make a game that requires the arrow keys to be pressed. How do I detect if a key has been pressed?

Member Avatar for Gribouillis
0
444
Member Avatar for abaddon2031

I am working on a code that searches a folder gets a specific part of the file name and adds 1 to a file counter. There are some files in tehre that have a special character that indicates that is is only half. I ahve got it to count the …

Member Avatar for flebber
0
186
Member Avatar for flebber

I am having an error file object when opening and reading a text file(csv). I must be misusing the with so that when I call the function race table its getting a file object and not a readline. How can I get the with to correctly hand over the file? …

Member Avatar for flebber
0
147
Member Avatar for EnergeticJet

Hello there DANIWEB! Now I know that there are already many different discussions asking for python ideas for beginners, but I thought maybe this could be a discussion for all different abilities. For example, if I wanted to reply with a Beginner idea, I would type: **BEGINNER** And the same …

Member Avatar for DragonMastur
0
372
Member Avatar for mark103

Hi all, I need some help regarding how to cancel the connection from my server using the urllib2 library. I want the database to stop writing the data away as soon as the connection has been cancelled. The `allchannels_timer` will be called when I hit the 'enter' button, which will …

Member Avatar for DragonMastur
0
354