Results 1 to 3 of 3

Thread: YCP help

  1. #1
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default YCP help

    I wish to write a module for YaST that would allow users to select which package manager the user wants to use. This would be a two fold module. First, the module to select which package manager; i.e. YaST, smart, yum, or synaptic. Secondly (obviously) it would require that when you click on Software Manager to have it bring up the appropriate package manager.

    Now I'm somewhat new to programming. The language I am most familiar with is python. I have read up a bit on YCP, but I have not yet attempted working with YCP. As I understand it, a module must consist of two parts; an ncurses part and the GUI. Writing it in YCP provides some nice advantages in that it has the ability to have support for both Qt and GTK.

    I am also asking for help because I have quite the full plate right now. I am rewriting the smart documentation, and also trying to redo the gui for smart. I had to take a break on the gui for smart so that I can learn GTK (I'm lost with the signals).

  2. #2
    Benjamin Weber NNTP User

    Default Re: YCP help

    linux learner wrote:
    > Now I'm somewhat new to programming. The language I am most familiar
    > with is python. I have read up a bit on YCP, but I have not yet
    > attempted working with YCP. As I understand it, a module must consist
    > of two parts; an ncurses part and the GUI. Writing it in YCP provides
    > some nice advantages in that it has the ability to have support for
    > both Qt and GTK.


    You just define the user interface once, and it will be rendered in either
    ncurses, gtk, or Qt.

    There is reference material at
    http://forgeftp.novell.com/yast/doc/SL11.0/tdg/

    There are also some tutorials at
    http://en.opensuse.org/YaST_Development#Tutorials

  3. #3
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: YCP help

    Quote Originally Posted by Benjamin Weber View Post
    linux learner wrote:
    > Now I'm somewhat new to programming. The language I am most familiar
    > with is python. I have read up a bit on YCP, but I have not yet
    > attempted working with YCP. As I understand it, a module must consist
    > of two parts; an ncurses part and the GUI. Writing it in YCP provides
    > some nice advantages in that it has the ability to have support for
    > both Qt and GTK.


    You just define the user interface once, and it will be rendered in either
    ncurses, gtk, or Qt.

    There is reference material at
    YaST2 Documentation

    There are also some tutorials at
    YaST/Development - openSUSE
    Yeah, I've read those.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •