[Tutor] Python GUI Tkinter Button arrangement

2011-02-16 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..

all are working but one buttons are top of the screen.  i want button
in bottom of the frame plz. help me..

this my source code


Source Code

http://pastebin.com/Lm5teAtS

Thanks in Advance
-Ganesh.





-- 
Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] PY-Tkinter Title Bar Icon

2011-02-21 Thread Ganesh Kumar
Hai..

I am new to python Tkinter..I want Title Bar Icon..

plz..Guide me to set up icon in Title Bar.

Advance Thanks

Thanks
-Ganesh.

-- 
Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] How to compile source code in debian

2011-05-09 Thread Ganesh Kumar
Hi Gurus,

I want compile ubuntu software centre source code from debian how to
compile...please help me..
I downloaded all file contents have python file ..

https://launchpad.net/ubuntu/maverick/+source/software-center/3.0.4

Advance thanks..
Ganesh

-- 
Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] What is `if __name__ == "__main__"` for?

2011-05-20 Thread Ganesh Kumar
Hi Gurus,

I am new python programming.. I see many programs
if __name__ == '__main__':
 when I check __name__ always eq __main__.
what purpose use these structure.. please guide me..

-Ganesh

-- 
Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] python-gobject for debian4

2011-06-13 Thread Ganesh Kumar
Hi Guys.

I want python-gobject package for debian4 (etch). But unfortunately
removed for debian4 depository .

How to install python-gobject package in debian4..

My Idea is

download debian5 repository python-gobject.deb file
Install in debian4.

I have try is working fine.

but the thing is reboot the mache show kernel-panic (KERNEL TO OLD)

I search google..its libc6 problem.. But i want python-gobject
otherwise my project not working ..

How to migrate python-gobject for debian4
please guide me..


-Ganesh.


Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] 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 finding

device_r = re.compile("^Channel: (\d+)")

the two parsing string working. but I want combine two pattern in to one.

This is my code
http://www.bpaste.net/show/21323/

please guide me .


-Ganesh

Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] re module help

2012-01-09 Thread Ganesh Kumar
Hi Gurus,

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

def scan():

cmd = "sdptool -i hci0 search OPUSH > sdptool"
fp = os.popen(cmd)

results = []
l = open("sdptool").read()


pattern = r"^Searching for OPUSH on (\w\w(:\w\w)+).*?Channel: (\d+)"
r = re.compile(pattern, flags=re.MULTILINE|re.DOTALL)
while True:
for match in r.finditer(l):
g  = match.groups()

results.append((g[0],'phone',g[2]))
return results

## output [('00:15:83:3D:0A:57', 'phone', '1')]


http://dpaste.com/684335/
please guide me. with out file creating, to archive required output.


Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Setting Network settings from Python/Djang

2012-01-22 Thread Ganesh Kumar
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
   2. Subnet
   3. Default Gateway
   4. DNS Servers 1&2

I realize that I can could just overwrite the config files in linux but I
was wondering if there is a more "Python" way of doing it.

I want any ready to use module is there, please guide me.


-Ganesh.

Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Help Glade Tutorial.

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, guide me guys How to start
with Glade.

-Ganesh

Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] How to start with Glade.

2012-03-05 Thread Ganesh Kumar
Hi Guys,

I am new to GUI, I know little bit python, But I do know, How to start with
Glade
and how to combine with .glade file to python. please guide me..

-Ganesh

Did I learn something today? If not, I wasted it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor