You are not logged in.

#1 2008-12-06 05:21:50

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

[solved] PyPanel Won't show task names, or any characters.

Sorry if this is in the wrong place, but since I customized Xfce4 with PyPanel, I guess it has to do with my DE.

I have been using PyPanel, and I got it all configured from the default file, and everything from scratch. But it won't show any words. No task name, desktop name, clock. In short, it only shows icons. Is there any fix for this? I have used PyPanel before, so it shouldn't be in the .pypanelrc file, that should be normal.

Last edited by Koonboi (2009-01-04 20:50:25)


"We're all mad here. I'm mad. You're mad."

Offline

#2 2008-12-06 05:40:29

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] PyPanel Won't show task names, or any characters.

Back up your .pypanelrc file then replace it with the default one just to make sure. "it shouldn't be x" often ends up being x.

Double-check your fonts too (e.g. that it's not set to use one that's no longer installed (not sure what would happen in that case)).

You could try removing and re-installing pypanel too.

Sorry, that's all I could think of right now.


Btw, when did the problem start and was was your setup before when you used PyPanel?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-12-06 06:02:27

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

OK. I used the bare minimum already given pypanelrc file, and same output, just looked different while doing it.

Not sure about the fonts, but I changed it a couple times. What would be a good way of telling what I can set it to? I have terminus installed, and I would like that for my panel.

Removed and reinstalled, nothing but time consuming. That has never helped me with a problem, so I quite trying.

Last time I used it was on my old install. My computer got a little gunky, because I was still fairly new through most of that install, so I reinstalled everything but my home partition, and just deleted all settings folders on that one. So I lost all programs, but kept documents. And when I started back, sorted through little small problems, but couldn't get this one.


"We're all mad here. I'm mad. You're mad."

Offline

#4 2008-12-06 15:59:57

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [solved] PyPanel Won't show task names, or any characters.

Koonboi wrote:

Not sure about the fonts, but I changed it a couple times. What would be a good way of telling what I can set it to? I have terminus installed, and I would like that for my panel.

xfontsel will show you all the fonts on your machine and you can preview what the changes are as you make them.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2008-12-06 16:39:26

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

I tried using that, but it seg faulted when I used something generated by that.


"We're all mad here. I'm mad. You're mad."

Offline

#6 2008-12-06 16:56:39

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved] PyPanel Won't show task names, or any characters.

As far as I know pypanel uses xft fonts.
Can you share your pypanel config with us ?

Also, have you tried it with another window manager ?
Maybe Xfwm isn't behaving the way pypanel expects it to.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#7 2008-12-06 17:00:36

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0xfaebd7"    # Panel background and tint (Antique White)
TASK_COLOR      = "0xffffff"    # Normal task name color
FOCUSED_COLOR   = "0x1826de"    # Focused task name color
SHADED_COLOR    = "0x808080"    # Shaded task name color 
MINIMIZED_COLOR = "0x808080"    # Minimized task name color 
DESKTOP_COLOR   = "0xffffff"    # Desktop name color
CLOCK_COLOR     = "0xffffff"    # Clock text color
LINE_COLOR      = "0x606060"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0x000000"
FOCUSED_SHADOW_COLOR   = "0x000000"
SHADED_SHADOW_COLOR    = "0x000000"
MINIMIZED_SHADOW_COLOR = "0x000000" 
DESKTOP_SHADOW_COLOR   = "0x000000"
CLOCK_SHADOW_COLOR     = "0x000000"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 8             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 24            # Panel application icon height
I_WIDTH         = 24            # Panel application icon Width 
APPL_I_HEIGHT   = 20            # Application launcher icon height
APPL_I_WIDTH    = 20            # Application launcher icon width
TRAY_I_HEIGHT   = 20            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 20            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%Y-%m-%d %H:%M  %D"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "terminus-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "Gran Paradiso" : "/home/koonboi/.icons/iComity/internet.png",
                   "Thunderbird-bin" : "/home/koonboi/.icons/iComity/mozillatb.png",
                   "terminal" : "/home/koonboi/.icons/iComity/terminal2.png",
                   "mousepad" : "/home/koonboi/.icons/iComity/notepad.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
# "gimp-2.2", "/usr/share/imlib2/data/images/paper.png"
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("firefox", "/home/koonboi/.icons/iComity/firefox.png"), 
                   ("thunderbird", "/home/koonboi/.icons/iComity/thunderbird.png"), 
                   ("terminal", "/home/koonboi/.icons/iComity/terminal.png"), 
                   ("thunar", "/home/koonboi/.icons/iComity/directory.png"), 
                   ("vlc", "/home/koonboi/.icons/iComity/vlc.png") 
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 80

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 1             # Show text shadows
SHOWLINES       = 1             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = ["One", "Two"]

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 1             # Desktop name section
TASKS           = 3             # Task names section 
TRAY            = 5             # System tray section
CLOCK           = 4             # Clock section
LAUNCHER        = 2             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

"We're all mad here. I'm mad. You're mad."

Offline

#8 2008-12-07 13:09:48

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [solved] PyPanel Won't show task names, or any characters.

Just a shot in the dark, but I remember awhile ago trying out terminus and it didn't work until I added /usr/share/fonts/local to the font path list in /etc/X11/xorg.conf since that is where the terminus fonts get installed, IIRC.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#9 2008-12-07 17:57:37

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

I ahve an autogenerated one from the nvidia drivers, and it has nothing about fonts.


"We're all mad here. I'm mad. You're mad."

Offline

#10 2008-12-07 18:44:28

SenorSnor
Member
From: Delft, Netherlands
Registered: 2006-09-13
Posts: 48

Re: [solved] PyPanel Won't show task names, or any characters.

I just installed PyPanel to confirm this, as it sounds like the issue I'm having with desktop icons and gVim (http://bbs.archlinux.org/viewtopic.php?id=60452). For me, no text is visible. When I click on an icon in PyPanel, e.g. an open firefox window, I briefly see some text flash but it disappears in a split sec.

I think your issue is the same as mine. Could you try starting gVim and see if you see any characters there?

Offline

#11 2008-12-07 18:49:25

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

Well as of now, I don't have gVim installed, and I can't. I am already downloading Openoffice, and then I am gonna write a report. But later, I will.


"We're all mad here. I'm mad. You're mad."

Offline

#12 2008-12-07 21:19:05

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

And as he mention, when I minimize things, it will show the font for a fraction of a second, and then cut out again.


"We're all mad here. I'm mad. You're mad."

Offline

#13 2008-12-07 23:40:04

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved] PyPanel Won't show task names, or any characters.

So, it's an XFCE issue ?
You don't get these problems in other Desktop Environments / Window Managers ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#14 2008-12-07 23:43:48

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

It just might be an Xfce issue. I really don't know what could cause it though.


"We're all mad here. I'm mad. You're mad."

Offline

#15 2008-12-07 23:55:42

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved] PyPanel Won't show task names, or any characters.

Maybe the XFCE settings daemon ?
What's it called ? The name eludes me...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#16 2008-12-08 00:00:29

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

These are all my daemons.

syslog-ng network netfs crond alsa hal fam samba

"We're all mad here. I'm mad. You're mad."

Offline

#17 2008-12-08 00:03:20

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved] PyPanel Won't show task names, or any characters.

Koonboi wrote:

These are all my daemons.

syslog-ng network netfs crond alsa hal fam samba

No, not a system-wide daemon. It's xfce-mcs-manager.
Try killing it and see if that does anything.

killall xfce-mcs-manager

The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#18 2008-12-08 00:34:30

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

It didn't do anything.


"We're all mad here. I'm mad. You're mad."

Offline

#19 2008-12-08 23:14:07

SenorSnor
Member
From: Delft, Netherlands
Registered: 2006-09-13
Posts: 48

Re: [solved] PyPanel Won't show task names, or any characters.

Koonboi, did you also just upgrade cairo and gtk2? I expect the problem may be there, some stuff needs a recompile against those libs.

Offline

#20 2008-12-08 23:45:37

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

I just upgraded, and reinstalled, with no change.


"We're all mad here. I'm mad. You're mad."

Offline

#21 2008-12-09 10:57:29

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: [solved] PyPanel Won't show task names, or any characters.

For the terminus font, try to put the following in your .xinitrc (or equivalent):

xset fp+ /usr/share/fonts/local &

Mortuus in anima, curam gero cutis

Offline

#22 2008-12-09 13:08:06

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

I also added that, with no change again. I wih at least it would change a little, so I could work at something else.

If it helps mentioning, when I instaled Arch, a lot of the fonts would mss up and get this weird stuff on them. Next time I encounter it I will take a screen shot....


"We're all mad here. I'm mad. You're mad."

Offline

#23 2008-12-09 15:38:03

SenorSnor
Member
From: Delft, Netherlands
Registered: 2006-09-13
Posts: 48

Re: [solved] PyPanel Won't show task names, or any characters.

I solved my issue by enabling sub-pixel hinting in Xfce's User Interface settings. Maybe that will work for you? See http://bugs.archlinux.org/task/12392 .

Last edited by SenorSnor (2008-12-09 15:58:24)

Offline

#24 2008-12-09 16:16:41

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [solved] PyPanel Won't show task names, or any characters.

Is the xfce4 panel trying to run? come in late here but pypanel runs fine here noted some users have had problems after X upgrade etc...

Have you got any other WM installed that you could just test pypanel ?

do you get any output from pypanel if you run it in a term?


Mr Green

Offline

#25 2008-12-09 19:26:05

Koonboi
Member
From: El Ghetto
Registered: 2008-08-14
Posts: 59

Re: [solved] PyPanel Won't show task names, or any characters.

No terminal output whatsoever. That is the first thing I checked when rewritting my pypanelrc file.

No other WMs at all, just xfce.

I uninstalled Xfce4's panel. And I 'pacman -Qs'd panel, and only got pypanel, and gnome-panel.

EDIT: And sub-pixel hinting is enabled.

Last edited by Koonboi (2008-12-09 19:27:22)


"We're all mad here. I'm mad. You're mad."

Offline

Board footer

Powered by FluxBB