Bret Hughes | 6 Mar 2007 00:30

getting started with python gui

I am working on a quasi kiosk config based on Centos that is basically a 
tablet pc that will be used to access a particular website or small set 
of sites via firefox.   One of the requirements is that the user/admin 
be able to set the networking parameters and printing config.  I hope to 
use the standard system-config-* to do this.

The X config is currently not running a window manager and I using 
keylaunch we can launch system-config-network and use it just fine since 
it does not relay on the window manager to provide a close window 
interface.  Rather than continue to add ctrl key codes I would really 
like to provide an admin login window that will authenticate a user 
against a hashed password stored in a file and give him the option to 
launch one of several config programs using sudo to eliminate the user 
knowing the root password.

This seemed to me to be a good time to play with python since I believe 
that is what the rest of the system-config* stuff is written in but a 
couple of the examples I found on the net to create a root window and do 
some stuff with it all seem to have issues. 

So,  thought I would ask if anyone knows the widgets toolset that is 
used and has a pointer to getting started. I will contine to dink but 
thought I would ask on a parallel track.

Any tips appreciated.

Bret
Bret Hughes | 6 Mar 2007 03:15

Re: getting started with python gui


Todd A. Jacobs wrote:
> On Mon, Mar 05, 2007 at 05:30:24PM -0600, Bret Hughes wrote:
>
>   
>> So,  thought I would ask if anyone knows the widgets toolset that is
>> used and has a pointer to getting started. I will contine to dink but
>> thought I would ask on a parallel track.
>>     
>
> I'm afraid I don't know, but I can tell you the following:
>
>     - Python ships with Tkinter for Tk support. That's the native widget
>       set, but not used as often.
>     - Python also supports bindings for GTK+ and Qt, and I'm willing to
>       bet that since Red Hat uses Gnome as the default interface, the
>       widget set is GTK+.
>     - The PyGTK manual is at http://www.pygtk.org/docs/pygtk/index.html
>
> If you have the source for your application, the python modules ought to
> import the bindings they need. I'd start the search for the right
> toolkit there.
>
>   

Great minds and all that.  As I was writing my original post I was 
wondering how hard it would be to wade into the code for one of those 
modules.  If I can find the root password prompt It shoul be simple 
enough to get started.  And thatnk for the like  will dig in tomorrow 
and let yu guys see what I come up with if you like.
(Continue reading)

Russell Evans | 8 Mar 2007 00:30
Favicon
Gravatar

Re: getting started with python gui

On Mon, 05 Mar 2007 17:30:24 -0600
"Bret Hughes" <bhughes@...> wrote:

> I am working on a quasi kiosk config based on Centos that is
> basically a tablet pc that will be used to access a particular
> website or small set of sites via firefox.   One of the requirements
> is that the user/admin be able to set the networking parameters and
> printing config.  I hope to use the standard system-config-* to do
> this.
> 
> The X config is currently not running a window manager and I using 
> keylaunch we can launch system-config-network and use it just fine
> since it does not relay on the window manager to provide a close
> window interface.  Rather than continue to add ctrl key codes I would
> really like to provide an admin login window that will authenticate a
> user against a hashed password stored in a file and give him the
> option to launch one of several config programs using sudo to
> eliminate the user knowing the root password.

http://www.sns.ias.edu/~jns/wp/2006/01/23/non-root-control-of-network-devices-under-linux-with-system-config-network/
This post details how to give a non-root user control over the network
devices.

System administrators are often forced to give their users root access
on laptops so that those users may configure their network settings
accordingly while travelling. It is possible however to allow a
non-root user control of the network devices using the
system-config-network graphical user interface in the following manner:

   1. Edit the “/etc/pam.d/system-config-network-*” files:
(Continue reading)

Bret Hughes | 8 Mar 2007 18:34

Re: getting started with python gui


Russell Evans wrote:
> On Mon, 05 Mar 2007 17:30:24 -0600
> "Bret Hughes" <bhughes@...> wrote:
>
>   
>> I am working on a quasi kiosk config based on Centos that is
>> basically a tablet pc that will be used to access a particular
>> website or small set of sites via firefox.   One of the requirements
>> is that the user/admin be able to set the networking parameters and
>> printing config.  I hope to use the standard system-config-* to do
>> this.
>>
>> The X config is currently not running a window manager and I using 
>> keylaunch we can launch system-config-network and use it just fine
>> since it does not relay on the window manager to provide a close
>> window interface.  Rather than continue to add ctrl key codes I would
>> really like to provide an admin login window that will authenticate a
>> user against a hashed password stored in a file and give him the
>> option to launch one of several config programs using sudo to
>> eliminate the user knowing the root password.
>>     
>
>
>
> http://www.sns.ias.edu/~jns/wp/2006/01/23/non-root-control-of-network-devices-under-linux-with-system-config-network/
> This post details how to give a non-root user control over the network
> devices.
>
> System administrators are often forced to give their users root access
(Continue reading)


Gmane