15,185 Topics

Member Avatar for
Member Avatar for jesouhaite08

I created a program and when I click on it, it launches the server and runs at [url]http://127.0.0.1:8000[/url] This is my code for it: pyweb.py: [ICODE]import os, sys sys.path += [r'c:\dev\incidents'] os.environ['DJANGO_SETTINGS_MODULE'] = 'incidents.settings' from django.core.management import call_command from threading import Thread t = Thread(target=call_command, args=('runserver',), kwargs={'shutdown_message':"done", 'use_reloader':False}) t.start() import …

0
52
Member Avatar for Patrick1991

Hello! I'm new in this forum and i have some problems in school. I'm from Germany and my teacher gave me the task to install a dart game in Python. Now i have not much time left. So i want you to ask if you could maybe help me with …

Member Avatar for Patrick1991
0
116
Member Avatar for ronnix

Hi, It is possible to get values from thread , while thread is executing , but not yet complete? if it is possible then how can I realise it in python? with hope to solution

Member Avatar for BearofNH
0
87
Member Avatar for elhallouf

hey all I am trying to write a pogram with arguments and options I want to call it this way: [CODE] python myScript.py -c -f 'C:/Temp/my_file.txt' [/CODE] OR [CODE] python myScript.py -u -f 'C:/Temp/my_file.txt' [/CODE] where [-f filename] is mandatory and exactly one of -c or -u should be there …

Member Avatar for woooee
0
81
Member Avatar for knish

Hi, 1) how do I source a python script thru MEL. 2) Execute a python script thru MEL (python("") Brgds, kNish

0
73
Member Avatar for darkMatter2008

Hello, I am an experienced programmer in OO langauges such as C++, C#, Java... etc. The problem I have is that I have written a class, and when I try to instantiate that class from another object, the compiler says that it cannot find it at the Import stage. From …

Member Avatar for bumsfeld
0
87
Member Avatar for darkMatter2008

How do I make a static function in an Class that can be called by another object? Thanks in advance.

Member Avatar for darkMatter2008
0
98
Member Avatar for cdub

I'm running 2.4.4 using gentoo. I've compiled python with Tk. (USE="tk" in /etc/make.cont) I can not get "turtle.setup(width=800,height=600,startx=400,starty=300)" to set the screen size. Any ideas? Is there another way to set the screen size? ? cdub [code = python] import Tkinter import turtle turtle.setup(width=800,height=600,startx=400,starty=300) turtle.down() turtle.right(30) turtle.forward(100) [/code]

Member Avatar for Fuse
0
4K
Member Avatar for kittensaretasty

I'm a complete beginner. I know how to get things to print to the screen, with the print command. But I want to be able to input a string of text and have that text returned in all caps. Do I do this with an argument to the print command …

Member Avatar for Fuse
0
92
Member Avatar for happimani

Dear All, What is the Major Differences between Python 2.3 and 2.4 and What are all the Major Features in Python 2.4?????????? regards Mani

Member Avatar for paddy3118
0
141
Member Avatar for shlomgad

Hello, I'm trying to convert a string which includes raw UCS2 unicode characters into a Python unicode object. For example: The string: "05E905DC05D505DD" The result I need: u'\u05E9\u05DC\u05D5\u05DD' What's the function I should use ? Thanks,

0
49
Member Avatar for turnerca902

Hi Folks, For thoes of you who may have read and offered assistance on this problem already, I thank you. (Woooee, Slate.) The project/problem has been evolving and now I feel I am getting close to a solution...but still a few steps away. I have the code below, which is …

0
66
Member Avatar for lllllIllIlllI

Hi I am making a program that collects data and then saves it to a text file. Then i want it to print the text file on a Network Printer and i was wondering how i would go about doing that?

Member Avatar for Ene Uran
0
90
Member Avatar for lllllIllIlllI

Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks

Member Avatar for lllllIllIlllI
0
545
Member Avatar for jimcc

So I have a simple dice program that lets the user make bets. If their current money pool is larger than the money pool in highscores.txt it will write the new score to the file. The program works as intended except for the high scores. When I try to write …

Member Avatar for Fuse
0
120
Member Avatar for smithsf22

Hello, I am exporting 3 seperate Selects to a csv file. What i have is a button that when clicked I would like to have to export. The problem that I have is that I can only get one of the three to work. All three do work just not …

Member Avatar for smithsf22
0
109
Member Avatar for dangermini

Hi, i've been working on simple code just prototyping the system i'd like to make. This all works and is going great apart from my "quit" button, the button appears. however when you click on it, it doesn't close the interface..i think it just stops the code from running or …

Member Avatar for woooee
0
4K
Member Avatar for s_jmp

I want to retrieve a variable's data that contain's an image i am using pys60 ,for example i have created a class of Image like this: i=Image.new((size,size)) and drawn a rectangle in it: i.rectangle('proper values') now there is a rectangle in i so we have an image and something is …

0
76
Member Avatar for xav.vijay

Hi friends I am trying to connect to a Linux machine from a Windows PC. I used to do it thru TELNET, but now I want to use SSH for better security. I tried with PYSSH, but I am going nowhere with it... Parmaiko is not working in Windows... Is …

Member Avatar for xav.vijay
0
573
Member Avatar for ronnix

Hi , I have a problem.. How can I get encoding for string which I retrieve from web or DB. with hope to solution..

Member Avatar for slate
0
77
Member Avatar for heshan

Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a …

Member Avatar for heshan
0
595
Member Avatar for Hugh Pittman

Does anyone know how to install Python3.0a5 on a Windows Vista OS / AMD64 AthlonX2 platform? I downloaded the amd64 version of Python3.0a5 but Vista won't install it -- although it has msi. After much 'googling' of the matter, I found that many other people have similar problems with Python …

Member Avatar for vegaseat
0
108
Member Avatar for pukebag

Hi there, I have a mixed list containing strings, integers, strings with numbers both prefix and suffix and mixed case strings as follow: mixedlist = ["cake", 12, "cakecar", "cAKe", "orange", "apple", "1cake", "cake1"] I'm trying to filter the list for any element containing "cake" so I get a new list …

Member Avatar for vegaseat
0
145
Member Avatar for caribedude

Is this supposed to play on my computer? I can't get the PMIDI module to work. I can write a code and it doesn't show and error, but I can't hear anything. I'm sure the codes are well written(mostly because I've used examples from other places) so does anyone know …

Member Avatar for vegaseat
0
124
Member Avatar for dr_kac

Hello! I would like to sort (by number) a file of data that looks like below: ABGH SDFDS 123 SDFS sDF 12 ... Can somebody help me? Thanks

Member Avatar for bvdet
0
137
Member Avatar for DustinS

I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I …

Member Avatar for DustinS
0
7K
Member Avatar for jhartley3

[ICODE]def aquariumTicket(total = 0): age = input("What is your age?") if age < 3: price = 0 elif age >=3 and age <=12: price = 19.5 elif age >= 55: price = 21.5 elif age >12 and age <55: price = 26 print "Ticket price: $%.2f" % price others = …

Member Avatar for slate
0
104
Member Avatar for jhartley3

def divide(dividend, divisor): This function should return the calculated value of integer division of divisor by dividend. Calculate the solution by using subtraction recursively to divide the two numbers. You are not allowed to use the division operator for this problem. Explanation: note that 7 divided by 2 is 3 …

Member Avatar for slate
0
108
Member Avatar for dinilkarun

How to create a tree control with child nodes having check boxes? I want the check boxes to be preferably on the left side of the nodes.

Member Avatar for woooee
0
563
Member Avatar for Fuse

Hi there. I'm new to Python. I started learning it 3 days ago. I've figured out everything by myself so far, but this is stumping me: Whenever I load a file such as a html document or a text file, it loads fine. But when I load this gif or …

Member Avatar for woooee
0
406

The End.