15,190 Topics

Member Avatar for
Member Avatar for leeqiang

I just wanna use PyScripter.and I found when I run a test with wxpython.it's dummped.(I have installed the wxpython packge)How was that?:'(

Member Avatar for leeqiang
0
112
Member Avatar for Prahaai

Hello. I am not new to Python in general, but i'm new to Tkinter. So, can anyone suggest me HOW can i make an interface like mIRC, with two text-boxes: - the lower text box will be one line and will be used to get the text commands. - the …

Member Avatar for leeqiang
0
86
Member Avatar for trihaitran

Hi I know this sounds really stupid, but I cannot figure out how to run the wxPython demo program. I'm using OS X and I downloaded the latest demo/docs package. When I double click on the "wxPytho demo.app", there is a splash screen with the wxPython logo, but then there …

Member Avatar for leeqiang
0
338
Member Avatar for alba07

I wrote a program in java that takes a message entered in the shell and flashes the message, then click the quit button to quit. Now I am supposed to rewrite it in python. So far in TKinter I only have the actual quit button (gui). I have no idea …

Member Avatar for alba07
0
240
Member Avatar for sliver_752

Hello all, Is there any algorithm to convert a python tuple to [URL="http://www.daniweb.com/techtalkforums/thread74502.html#"]MySql query[/URL]. Ex: [B] ('*','name','sliver')[/B] should convert to [B] select [Pri_Key] from [All Tables] where 'name' = 'sliver';[/B] I have been able to do so ... but my [URL="http://www.daniweb.com/techtalkforums/thread74502.html#"]algorithm[/URL] looks very ugly and have to process everything bit …

Member Avatar for iamthwee
0
73
Member Avatar for fonzali

hi , below is my program which is supposed to accept 3 different numbers , add them up and print the result but what it does is that it takes the first number and mutiplies that by 3 , where have I gone wrong ? [code=python] from Tkinter import * …

Member Avatar for fonzali
0
857
Member Avatar for pinder

hey guys im trying to express this in python, for i in $(ls [B]lsb[/B]/desktop); do tjreport [B]lsb[/B]/desktop/$i/journal* > [B]lsb[/B]/desktop/$i/${i}fail; tjreport -d [B]lsb[/B]/desktop/$i/journal* > [B]lsb[/B]/desktop/$i/${i}all; done its shell commands but i dont know how to do this in python could u guys help please thx

0
59
Member Avatar for grandprix

hello all, i need to write a script for windows server 2003 that will allow me to add new users to the Active Directory, but not conventionally, as i will soon explain. This is a full command right now: dsadd user "CN=ATEST001,OU=local-admins,DC=red,DC=qumranet,DC=com" -display "ATEST001 FAMILYNAME" -pwd 123456 -u RED\administrator -p …

Member Avatar for jrcagle
0
104
Member Avatar for heartheart

I have a script that spawns two threads, one for incoming data off a socket and one for outgoing. The series of execution is currently as so: Connects to server Outgoing thread sends login information Incoming thread recieves some information back Outgoing thread enters / leaves critical section Outgoing thread …

Member Avatar for heartheart
0
76
Member Avatar for sneekula
Member Avatar for sharma_vivek82
0
194
Member Avatar for sliver_752

Hello all, Is there any algorithm to convert a python tuple to MySql query. Ex: [B] ('*','name','sliver')[/B] should convert to [B] select [Pri_Key] from [All Tables] where 'name' = 'sliver';[/B] I have been able to do so ... but my algorithm looks very ugly and have to process everything bit …

Member Avatar for sharma_vivek82
0
675
Member Avatar for fredzik

G'day, I've been googling for the last three weeks :eek: trying to get an example of a program larger than a simple "Hello World" that works inside it's own GUI. I've been working on the "GUI with calculator" in this same section of Daniweb, but as soon as I put …

Member Avatar for fredzik
0
156
Member Avatar for aot

Does anyone know if there's a way to make a larger entry box in Tkinter? I'm looking to allow users to enter comments at the end of my program, so there should be plenty of space.

Member Avatar for aot
0
85
Member Avatar for peterhis

hi everyone, i am newbie for python.. what i want to do is to click on the button and the python script will add up for what i ordered/choose from the webste... th can some one give me idea?

Member Avatar for 8374
0
276
Member Avatar for nytrokiss

Does anyone know where this comes from or comes in! I haven't seen it and now i have seen it in my code ( i know what it means but can anyone provide somemore info....)

Member Avatar for nytrokiss
0
104
Member Avatar for slayr-cxf50

Hi I am creating a loop, and for one of the ?possibilities (or answer things or whatever they're called when you can execute commands from the results) i have a result of None. This is the code. ready = False while not ready: input = raw_input("Are you ready?") if input …

Member Avatar for Lardmeister
0
92
Member Avatar for R.S.Chourasia

Hello everyone, I am trying to run my .psp project on the IIS.But It is giving the some CGI ERROR. I dont know why it is giving such error. The project is working wee on the Wamp Apache server. I went through the microsoft support help. And follow the instruction,But …

0
76
Member Avatar for bkerr06

Hi all, I've been working on a program that simulates a racquetball match. The problem I am having is getting the match to end when one player is the clear winner of 'n' games. I've tried adding modules, altering loops, adding variables, etc. Is anyone able to help by pointing …

Member Avatar for liz517
0
808
Member Avatar for qkrtjgk86

i am trying to sort a list using recursive function... the first thing i want to do is to extract the maximum element and append it to a recursively sorted sublist. def selsort(l,maximum = 0, appending = ""): if l: if l[maximum]<l[len(l)-1]: appending = l[0] selsort(l[len(l)-1:0],maximum +1) sort_list = sort_list.append(appending) …

Member Avatar for katharnakh
0
67
Member Avatar for dav_yip

I have a problem is phasing the extended charactors in TK(). Any help would be apreciated. a='itself ‘a parody’.' >>> a "return" 'itself \x91a parody\x92.' >>> def display(data): root = Tk() scrollbar = Scrollbar(root) myTextWidget= Text(root,yscrollcommand=scrollbar.set) myTextWidget.insert(0.0, data) scrollbar.config(command=myTextWidget.yview) scrollbar.pack(side=RIGHT, fill=Y) myTextWidget.pack(side=LEFT, expand=0, fill=BOTH) >>> display(a) I ended up geting …

Member Avatar for katharnakh
0
150
Member Avatar for lyl

Hi, I'm looking at writing python script to enable me to trigger multiple ftp processes concurrently in the background mode, like using "&" in shell programming. Can someone share with me the command to do so? Thank You. LYL

0
45
Member Avatar for purifier

I wasn't able to run a Python script. But then later I was able to run it through the Shell. I was experimenting with cron jobs and set up the python execution in as a cron. The first time it ran, It was fine but then after that, it started …

Member Avatar for Lardmeister
0
86
Member Avatar for liz517

This is what I have. I know I am missing something can you help [code = python]import string def main(): print "This program replaces 4 lettter words in a file with xxxx" # get the sequence of words from the file fname = raw_input("File to analyze: ") text = open(fname,'r').read() …

Member Avatar for sneekula
0
120
Member Avatar for Gigs_

I want to make find in my text editor like in mozilla firefox on the bottom of my gui this is only for learning. [code=PYTHON] class MyClass(Frame): def onFind(self, target=None): if target == None: target = tkSimpleDialog.askstring('Find!', 'Search for string!') if target: where = self.text.search(target, INSERT, END) if where: pastit …

0
56
Member Avatar for nitinloml

#!/usr/bin/python import string import re import random import sys import time import fileinput tn = time.time() t = str(tn) ss = "5571" lv = open("/usr/local/https/data/session1.txt","r") lvr = lv.readlines() l_lvr = len(lvr) #print lvr l_list = [] for i in range(l_lvr): test = re.split('\|', lvr[i]) l_list.append(test) #print l_list for u,s,t,sp in …

Member Avatar for vegaseat
0
93
Member Avatar for Gigs_

I want to make undo/redo functions for my text editor and my paint editor writen in tkinter. which will be the easiest or the better way to do that? thanks

0
71
Member Avatar for Gigs_

hi all i cant figure out how to put popup window to show in the middle of my text editor? It is writen with Toplevel in tkinter. thx

Member Avatar for bumsfeld
0
76
Member Avatar for tacmedic

HI, I am very very new to python and I am tring to work on a homework assignment. I know that you only give help to those who help themselves, so I am hoping that you can help me. I have to write two python programs, one that will take …

Member Avatar for bumsfeld
0
102
Member Avatar for liz517

What am I doing wrong? I am to take the average number of each cooled, heated, regular and either subtract the degrees below 60(heated) or above 80(cooled),then add that number to the number of days # Chpt 8#11Tempdays.py # A program to add a set of temperatures enter by the …

Member Avatar for liz517
0
90
Member Avatar for sivasrinivask

hi friends, i am able to parse the xml file and retrieve the corresponding tag values. Now how can i send the retrieved values from python function to the c functions. And also can any one help me in retrieving all the sub tag values from a particular action tag. …

0
106

The End.