Hi All,
first of all thanks to all for helping me out till now,
whenever i got stucked somewhere that time u all helped me out.I need some more help of u all.I am using python 2.5 along with wxpython,and i need to increase the visibility of the dialogs and windows,in wxpython we have some styles apart from those styles do we have any other styles for increasing the look of it.One solution for this is tiling(tesellation) through tiling i can do this but that would be bit tough for me at this stage,and second if there is some more styles on net or any package or anything else which i need to download and to embed in the code for using it.

Dani AI

Generated

This thread is asking two related things: how to make dialogs more “visible” (bigger/more prominent/in front) and how to give dialogs a different visual style (metallic, gradients, custom colors). The answers are different depending on whether you want a quick, cross‑platform tweak or a fully custom skin.

For quick fixes (no custom drawing)

  • Bring a dialog forward or keep it above other windows with style=wx.STAY_ON_TOP or call dlg.Raise() for modeless dialogs. Modal dialogs (dlg.ShowModal()) already get focus.
  • Improve contrast and readability by changing backgrounds, text color and fonts:
    dlg = wx.Dialog(parent, style=wx.DEFAULT_DIALOG_STYLE)
    dlg.SetBackgroundColour(wx.Colour(240,240,255))
    lbl = wx.StaticText(dlg, label="Important")
    lbl.SetForegroundColour(wx.Colour(0,0,120))
  • Use larger fonts, padding and clear icons to make important parts stand out.

For a custom “look” (metallic, gradients, custom borders)

  • Put your content on a wx.Panel and handle EVT_PAINT to draw a gradient or a tiled texture bitmap. Use wx.GraphicsContext/wx.GCDC for nicer results.
  • To draw a custom chrome/titlebar create a borderless dialog/frame (wx.NO_BORDER/no caption) and implement your own title area and close buttons. That lets you render metallic highlights or non‑standard borders.
  • Reuse AGW and AUI widgets for fancier controls and docking (look under wx.lib.agw and wx.aui in the wxPython demo).

Cautions and tips

  • Custom drawing reduces native look-and-feel and can break accessibility, DPI scaling, or platform theme behavior. Test on each target OS.
  • Prefer subtle color/contrast changes for accessibility rather than heavy skins. Use images sparingly and keep text legible.
  • The wxPython demo and docs have many examples of custom painting and AGW widgets; consult wxPython docs for sample code and patterns.

Recommended Answers

All 2 Replies

What do you mean by "increasing the look"? If you just want to make it more visible, you could set border colors to hot pink or something...

Jeff

What do you mean by "increasing the look"? If you just want to make it more visible, you could set border colors to hot pink or something...

Jeff

I meant that is there any style for dialogs something like metallic or any other,
actually i need some different types/colors of dialogs,for that what i have to do?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.