Osnews - Slider

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

This is a complete hack. When I started with this, I knew nothing about python, or widgets, or how to program them. Anyone who knows anything about programming in python will probably turn in their grave when they see this. However, I'm quite pleased with the outcome. It's yet another news theme, but it slides in and out from the side of the screen. There are other themes that do similar, although, they just appear, and disappear. This one SLIIIDES.

Hope you like it
Last changelog:

17 years ago

0.2 The handles now slide in and out. They slide in when first extended; slide out when the widget is extended and the mouse is over the handle; slide in when the widget is extended and the theme is updated (currently set at a minute).

This is completely pointless eyecandy, but I thought, as I've done it, I'd share it.

tisonlyi

17 years ago

...From the default position?

Howto?

I've changed pretty much every variable i can see, and the graphics and text move, but nothing is visible outside of the little box the slider makes for itself in the top left corner of the screen...

In your screenshot you have multiple Sliders running, how are you changing the location???!!!???

Oh, and great work, this is loooovely.

:-D

Report

C

Matti

17 years ago

You may need to close the theme, and delete ~/.superkaramba/osnews.rc, then restart the theme.

For some reason I find that this file can interfere with the operation of the theme if you change its position. Once you delete it and restart, often the problems go away.

Matt

Report

willihus

17 years ago

All you need to do is to drag the widget to the position you want it (you may need to uncheck "Toggle locked position" in the menu) and it will stay there.

Since v0.25 there is no more need to manually enter the coordinates into the *.theme file.

Report

willihus

17 years ago

Or better use the y coordinate you get by calling getWidgetPosition(widget).

Report

C

Matti

17 years ago

However, you will need to change the y co-ordinate on the moveWidget function, otherwise, it will revert when moved to the y position in the .py file.

Matt

Report

C

Matti

17 years ago

I'm not at my real computer, so can't check. The background and text positions are set in the .theme file. The handle position is set in the .py file.

You'll need to change the y values in the .py file in the mouseClicked and mouseMoved callbacks relating to the moveWidget function. If I recall correctly it is the only fixed numerical value in that function call.

You'll also need to change the y position of the theme in the .theme file to the same value.

You shouldn't need to change any other values (AFAICR).

Report

oldkerosen

17 years ago

Hi
You use a great wallpaper, may I have it also?

Report

C

Matti

17 years ago

This is a question for other people making superkaramba themes. I have implemented the handle slide/resize thingy in this theme for a vertical slider. However, the imageResize needed to move the handle in and out works considerably slower on a height resize, as opposed to on a width resize (ie resize by width). Has anyone else noticed this difference? The loop I am using is identical, except that the resize is done for height, as opposed to width.

Any assistance would be appreciated on this.

Report

ViRgiLiO

17 years ago

I think your idea is great, but what about to add several slides on the edge of the desktop for each site news, and pressing one of them shows the news karamba window? Think in slicker style.

Report

C

Matti

17 years ago

Not sure what you're getting at here. At this stage, I'm just using this as a way to get familiar with python/karamba. Once I get a bit more competent, I might try something fancy ... small steps ... I'm sure there will be more.

Report

17 years ago

0.2 The handles now slide in and out. They slide in when first extended; slide out when the widget is extended and the mouse is over the handle; slide in when the widget is extended and the theme is updated (currently set at a minute).

This is completely pointless eyecandy, but I thought, as I've done it, I'd share it.

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated May 19 2003
added May 18 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0