[BangPypers] Help pyqt learning guide.

2012-03-30 Thread Ganesh Kumar
Hi guys, I am new to pyqt. please suggest any good material to understand pyqt. please guide me. -Ganesh. Did I learn something today? If not, I wasted it. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpyp

[BangPypers] Help Glade tutorials

2012-01-29 Thread Ganesh Kumar
Hi Guys, I am searching for a Glade tutorial, on how to create simple projects Glade with python 1) design a simple interface in glade 2) use the glade interface to write some really simple application with python. I search in goggled i didn't get good tutorials, any guide me How to start with G

[BangPypers] Setting Network settings from Python/Django

2012-01-22 Thread Ganesh Kumar
Hi guys I'm working on a simple web interface for an embedded computer. The computer will ship with a static default ip that will then need to be updated by the install tech who may not be tech/linux savvy. Basicly I need to change the following system settings from a Django app. 1. IP Addres

Re: [BangPypers] Truth Tests (bool)

2012-01-10 Thread Ganesh Kumar
HI. > I think, usually we just test the empty list for it's False-ness. > Isn't it? > > In [8]: x = [] In [9]: bool(x) Out[9]: False -Ganesh. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Truth Tests (bool)

2012-01-10 Thread Ganesh Kumar
Hi Guys, >>> 3 and 4, [3, 4] and [] (4, []) >>> 3 and 4 4 How to compare value in logical operation empty list [] = False How to and operation working, please guide me guys. Did I learn something today? If not, I wasted it. ___ BangPypers mailin

Re: [BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi. > > > I tried also subprocess module, But didn't got result, I tried the same > > pattern. But didn't match the string over the stream. > > Are you sure you're getting the output from the command in your string? > I got output from terminal command working fine > Verify that and then you ca

Re: [BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi sir, I tried also subprocess module, But didn't got result, I tried the same pattern. But didn't match the string over the stream. > >>> import subprocess > >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) > >>> hosts_head = s.stdout.read() > >>> print hosts_head > 1

[BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi Guys, I have created regular expression with os modules, I have created file sdptool to match the regular expression pattern, will print the result. I want without creating file how to get required output, I tried but i didn't get output correctly, over stream. #! /usr/bin/python import os,re

[BangPypers] Parse multi line with re module.

2012-01-03 Thread Ganesh Kumar
Hi Guys, I want parse multiple line. with re.module, this is my given string http://dpaste.com/680760/ I have try with re.compile module. I want parse two line mac address and channel, I have done with for mac address finding r = re.compile("^Searching for OPUSH on (\w\w(:\w\w)+)") for channel f

[BangPypers] [JOB] Openings for Django programmers

2011-12-07 Thread Ganesh Kumar
Job Description : Django programmers Key Responsibilities 1.Development & Integrations of Business Applications based on Django and other technologies. 2.Developer will be involved in the design,development life cycle of new Business solutions, maintenance and support of existing operational sys

Re: [BangPypers] Uninstalling Python 2.6

2011-06-24 Thread Ganesh Kumar
Hi.. > # update-alternatives --install /usr/bin/python python /usr/bin/python2.6 1 > # update-alternatives --install /usr/bin/python python /usr/bin/python2.5 10 > # update-alternatives --config python Thanks its working .. Did I learn something today? If not, I wasted it.

Re: [BangPypers] Uninstalling Python 2.6

2011-06-23 Thread Ganesh Kumar
Thanks for u r kindly mail, I have tried u r suggestion I got output.. > It would be something like (after installing python-2.5) - > > # update-alternatives --config python > Ganesh:~# update-alternatives --config python update-alternatives: error: no alternatives for python. -Ganesh. Did I l

[BangPypers] Uninstalling Python 2.6

2011-06-23 Thread Ganesh Kumar
Hey Guys, I want to remove Python 2.6 from my computer, or at least change the default python to 2.5. When I try to remove Python 2.6 through the package manager, it asks me if I want to remove about 200 other things, which I don't want to do. Things that only support Python 2.5 (like vim.. etc) t

[BangPypers] Python-os. Command Execution

2011-02-19 Thread Ganesh Kumar
Hi, I am new to python programing. I have created one small application , application developed in python Tkinter GUI, My application having install button when user click install, It will start one GUI installation script and exit my application This my task.. The problem was the installation

Re: [BangPypers] Python GUI Tkinter Button arrangement

2011-02-17 Thread Ganesh Kumar
Hi., I have changed my code but now also not working.. This my updated code http://pastebin.com/22BgyQsD Plz..Help me.. > >       I haven't worked with TkInter. But did you try reading it's > layout management docs ? I found one here. > > http://infohost.nmt.edu/tcc/help/pubs/tkinter/layout-

[BangPypers] Python GUI Tkinter Button arrangement

2011-02-15 Thread Ganesh Kumar
Hi.. I am new to python , i have creating one application user agreement..using Tkinter, The Content of the agreement will reading one file...Agree button will click means enable next button. And activate script, Quit button for exit the program,, Dis agree means one warning message will show up