Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I place background image on mainframe in bwidget

46 views
Skip to first unread message

Puneet Goyal

unread,
Jun 13, 2016, 10:11:40 AM6/13/16
to
Hi

I am trying to place an background image on a frame inside mainframe in a application developed using Bwidget library. The problem I am facing, whenever I try to open tab notebook, I see image and tab split up in mainframe.

Can some one help me to place background image on mainframe ?

This is the code I am using

proc create {} {

set mainframe [MainFrame .mainframe -menu $descmenu -textvariable status]

# NoteBook creation
set frame [$mainframe getframe]
set notebook [NoteBook $frame.nb -arcradius 4]

set ximg [label $frame.x -image ::img::main_logo \
-foreground grey90 -background white]
pack $ximg
pack $mainframe -fill both -expand yes

$notebook raise page

}

wm withdraw .
wm title . "Demo"

create
BWidget::place . 600 600 center
wm deiconify .
raise .
focus -force .

Arjen Markus

unread,
Jun 17, 2016, 5:24:03 AM6/17/16
to
Op maandag 13 juni 2016 16:11:40 UTC+2 schreef Puneet Goyal:
I have tried to reproduce the problem by running your script, but it is incomplete. After replacing the image and removing the menu (not quite relevant, I'd say) I got stuck on the "page" - [$notebook raise page] gives an error.

Could you post a self-contained script to reproduce the effect you see? It is very difficult to help you otherwise.

Regards,

Arjen
0 new messages