Re: Anaconda - progress_gui.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oh well, thanks guys. The rnotes Code has worked in CentOS 5.x, i already did that there...

The code i refer to in the new progress_gui.py is that:

    def _getRnotes(self):
        langs = []
        pixmaps = []
        if (os.environ.has_key('LANG')):
            langs = language.expandLangs(os.environ['LANG'])
        langs.append('')

        pixmaps = []
        paths = ("/tmp/product/pixmaps/rnotes/%s/*.png",
                 "/usr/share/anaconda/pixmaps/rnotes/%s/*.png")
        for p in paths:
            for lang in langs:
                path = p % lang
                pixmaps = glob.glob(path)
                if len(pixmaps) > 0:
                    break

        if len(pixmaps) > 0:
            files = pixmaps
        else:
            files = ["progress_first.png"]

        return files
       

    def getScreen (self, anaconda):
    self.intf = anaconda.intf
    if anaconda.dir == DISPATCH_BACK:
        self.intf.icw.prevClicked()
        return

        self.pixmaps = self._getRnotes()

It looked to me that creating a folder, let's say rnotes/de/ and putting .png's in there would do the trick, but it won't. Maybe i try to use the old progress_guy.py file or just try to use the old code snippet ..
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux