Search:

Type: Posts; User: Sandsound; Keyword(s):

Page 1 of 7 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Lpic

    by Sandsound
    Replies
    0
    Views
    215

    Lpic

    I have decided to take the LPIC-1, LPIC-2 and UCP, and being unemployed, I have to keep the budget down, therefore I have chosen to do this as a "self-study". I have found tons of material on the...
  2. Thread: ping gnome?

    by Sandsound
    Replies
    9
    Views
    436

    Re: ping gnome?

    I'll try to keep that in mind for my future projects.

    The portability issues doesn't mind me that much (almost everyone I know uses Ubuntu anyway), but my programs have a tendency to get larger...
  3. Thread: ping gnome?

    by Sandsound
    Replies
    9
    Views
    436

    Re: ping gnome?

    It this because of possible problems with portability?

    I mostly do small PyGtk apps, so my code is already limited in choice of os.
  4. Thread: ping gnome?

    by Sandsound
    Replies
    9
    Views
    436

    Re: ping gnome?

    Great :-) just what I need.

    this is my final code (the interesting part):


    serverip = ("192.168.1.10")
    tid = time.time()

    while True:
    #if not found in 60sec then show error
  5. Thread: ping gnome?

    by Sandsound
    Replies
    9
    Views
    436

    Re: ping gnome?

    Thank you both for your suggestions.

    This is my first futile attempt that kind'a works:


    tid = time.time()

    while True:
    if time.time() > tid + 0.20:
    status = ("OFLINE")
  6. Thread: ping gnome?

    by Sandsound
    Replies
    9
    Views
    436

    ping gnome?

    I'm trying to make a fairly simple app in PyGtk.
    I using WOL (wake on lan) to turn on my server, and would like to get a confirmation when it's up and running and be able to use is via vnc.

    My...
  7. Replies
    5
    Views
    1,766

    Re: How to create deb of a Python script?

    I use this method :
    http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb
  8. Replies
    8
    Views
    718

    Re: Looking for Python IDE

    I use Bluefish myself, but Netbeans looks very promising.
  9. Replies
    1
    Views
    219

    Re: gtk.combo_box problem

    I have made a rather clumsy solution to my problem :redface:

    if color_normal == 'black':
    normal_combobox.set_active(0)
    if color_normal == 'blue':
    normal_combobox.set_active(1)
    if...
  10. Replies
    1
    Views
    219

    gtk.combo_box problem

    Hi all

    I'm working on a python-frontend to the grub2 theme-file, I call it grub2l (or just grubtool).

    I have a combobox where you can select the font-color, and when the program is loaded, I do...
  11. Replies
    5
    Views
    611

    Re: pygtk.org down?

    yay... they are finaly up again \\:D/
  12. Thread: PyBash

    by Sandsound
    Replies
    6
    Views
    743

    Re: PyBash

    I did have "import os" but the xterm did the trick.

    Thanks :-D
  13. Thread: PyBash

    by Sandsound
    Replies
    6
    Views
    743

    Re: PyBash

    thanks, but I kind'a like the minimalistic way gksudo ask for authorization.
    Does pkexec behave like gksudo ? (if i do a gksudo it remember the authorization and the next gksudo will not prompt for...
  14. Thread: PyBash

    by Sandsound
    Replies
    6
    Views
    743

    Re: PyBash

    It's a Python program with a gui and I don't want the whole program to run as root only the things that require it.
  15. Thread: PyBash

    by Sandsound
    Replies
    6
    Views
    743

    PyBash

    Can someone please tell me why this doesn't work :

    os.system('gksudo "cp -f /home/sandie/Desktop/folder/* /home/sandie/Desktop"')

    I can do this :

    os.system("cp -f...
  16. Re: What games would you like to see native for linux?

    The Elder Scrolls V for Linux

    That would be SO cool :biggrin:
  17. Replies
    12
    Views
    937

    Re: Which is best for Python GUI ???

    I'm also new to Python and have a similar problem with hanging scripts, so I made this little python-app i call : Reload

    btw. GTK is (imho) the best place to begin, and theres a lot of...
  18. Replies
    12
    Views
    1,489

    [SOLVED] Re: How to kill a python

    Got it :-)


    def kill_callback(self, kill_button):
    entry_box = self.command_entry.get_text()
    for line in os.popen("ps -ef"):
    if entry_box in line:
    fields = line.split()
    pid =...
  19. Replies
    12
    Views
    1,489

    [SOLVED] Re: How to kill a python

    Thank you all for helping.

    I still haven't been able to figure out why ps return the correct line in a terminal and a "0" in the script ?




    Looks nice and simple, but it doesn't seam to be...
  20. Replies
    12
    Views
    1,489

    [SOLVED] Re: How to kill a python

    Thanks, this looks promising.

    Can't understand why this doesn't work thou :

    self.command_entry.set_text('programX')
    process_name = ('[p]ython '+'"'+ self.command_entry.get_text() +'"')...
  21. Replies
    12
    Views
    1,489

    [SOLVED] Re: How to kill a python

    If I do :

    ps -ef | grep python programX
    I get :

    grep: programX: No such file or directory

    I still don't know how to get the pid of a process called
    "python ./programX"
  22. Replies
    12
    Views
    1,489

    [SOLVED] How to kill a python

    I would like to kill a python script that is run from within another python script, while keeping the original script running.

    example:

    programX has a virtual terminal where I launch programY....
  23. Replies
    5
    Views
    472

    [SOLVED] Re: My first .deb :-) doesn't work :-(

    I found this how-to : http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb

    Now my .deb actually works with GDebi, but it is only usable as root ?
    The .deb installed it in...
  24. Replies
    26
    Views
    1,201

    Re: check for program in Python

    Cool 8-)
  25. Replies
    26
    Views
    1,201

    Re: check for program in Python

    Sorry... but I don't get it, please elaborate
Results 1 to 25 of 159
Page 1 of 7 1 2 3 4