On 2010-06-23 11:33, Brian Rowlands (Greymouth High School) wrote:
> Novice but eager to learn. I'm writing a login script which displays a
> GUI window and which I want to update with comments as the script runs.
My preferred pattern for this, especially on Windows, is to use threads.
The main t
Thanks for the suggestion but it doesn't make any difference.
Thanks for replying.
Window only appears after the contents of do_stuff() have completed
their tasks
Do_stuff completes tasks like:
* copy DB to c: drive from server
* read DB
* check user is allow
Have a look at pygtk faq
http://faq.pygtk.org/index.py?req=show&file=faq03.007.htp
On 23/06/2010 11:19 AM, Brian Rowlands (Greymouth High School) wrote:
> Thanks for that.
>
> Do_stuff consists of things like:
>
> Impersonate a user
> Copy Db to c: drive
> Read sql DB and obtain
Hi,
I am trying to subclass gio.File, but I'm having trouble... it seems
like Python (or gio) just won't let me. This snippet will explain it
fully:
import gio
class SubGio(gio.File):
def __init__(self, path):
super(gio.File, self).__init__(path)
@property
def name(self):
Thanks for that.
Do_stuff consists of things like:
Impersonate a user
Copy Db to c: drive
Read sql DB and obtain PC settings
Log-off certain types of users
Change the registry
Set printers inc default printer
Write to a log file
Etc
On Tue, Jun 22, 2010 at 18:33, Brian Rowlands (Greymouth High School)
wrote:
> The issue I have is that the outline of the window appears with the inside
> blank until do_stuff() completes when the window is fully defined.
>
> If I have:
>
> gtk.main()
> do_stuff()
>
> then the window appears fine
Novice but eager to learn. I'm writing a login script which displays a
GUI window and which I want to update with comments as the script runs.
My script finishes with:
if __name__ == '__main__':
ghs = LoginApp()
ghs['user'].set_text(user)
ghs['pc'].set_text(pc_name)
set_u