Python Tkinter Linux Repair Question/ Python TCP Socket Example

2010-06-15 Thread My Python
I got to target my little GUI app that uses TCP sockets in Python
2.4.4 for Windows and Linux.


Question 1
=
Given the above, I installed 2.4.4 on Windows 7 and Tkinter import
works like a charm. (the install is good)

The Linux (Red Hat 4.1.2-46) though has python preinstalled with ver
2.4.4, but Tkinter import fails:

Type "help", "copyright", "credits" or "license" for more information.
>>> from Tkinter import *
Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/local/lib/python2.4/lib-tk/Tkinter.py", line 38, in ?
import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: No module named _tkinter
>>>

Could someone please explain how to configure python for Tk or
(reinstall the Tkinter package by itself will be easier and get rid of
the issue, if so how to install)??

I tried reinstall the entire python-2.4.4.tar, followed instructions
(./configure, make, make install) -- this did not fix Tkinter.

Question 2

Can some one post a URL (or a sample module itself) that shows how to
write basic TCP socket application?
Any pointers, tutorials, youtube.com links are welcome if they are
specific.


Please post responses to this thread only (the e-mail is dummy)

TIA!!!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Tkinter Linux Repair Question/ Python TCP Socket Example

2010-06-16 Thread My Python
1. Could u also quote some URLs for sample GUI programs written using
Tkinter. I am looking for any aubstantial app that has Canvas, Frame,
Button, LIstbox widgets, plus File Open/Save for simple text files.

2. Some good holistic article for positioning widgets on the frame/
canvas, basic concepts that are explained visually with diagrams.

TIA
-- 
http://mail.python.org/mailman/listinfo/python-list


Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread My Python
I would like to see some substantial example of an App written for a
Modeless Dialog (fixed size, non resizable window) (If you have used
WIndows MFC or Visual Basic you all know how elegant it is) with
Buttons, menus, edit boxes, list boxes, file save as dialogs popping
from the button action (this one is easy, but I want the file save as
python code to save a text file :)

Please, those samples packed with install are ***  bare and cheesy
*** , it is inadequate. Can someone share a cool app code that
implements a Modeless dialog.

TIA!!
-- 
http://mail.python.org/mailman/listinfo/python-list