Add default stylesheet to simplify Pyjamas development #615

Open
pyjsorg opened this Issue Apr 27, 2012 · 2 comments

Comments

Projects
None yet
1 participant
Contributor

pyjsorg commented Apr 27, 2012

Many of the Pyjamas widgets rely on stylesheet definitions in order to be
usable. For example, the default behaviour of ui.MenuBar is basically
unusable unless you define your own stylesheet definitions.

This requirement to define stylesheets can be quite confusing for a new
programmer, who expects the various widgets to "just work". Would it be
feasible / worthwhile writing a default stylesheet which can be
automatically included in the built application so that the various widgets
work correctly from the outset? If such a stylesheet was added, we would
have to be careful to ensure that the default stylesheet is only acting as
a default, and should be easily disabled or overwritten by the developer if
they wish to use their own stylesheet definitions instead.

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=101 (November 19, 2008 22:51:15)

Contributor

pyjsorg commented Apr 27, 2012

From luke.lei...@gmail.com on July 10, 2009 20:52:56:
yehhhs.... it would go alongside the default HTML which is built at the moment.
but, i cannot think of how that would work with pyjd, unless pyjd actually
creates the files as part of the startup (pyjd.setup()) !

which would be... bad?

Contributor

pyjsorg commented Apr 27, 2012

From luke.lei...@gmail.com on June 26, 2010 12:58:52:
ok there's a new example cssmesser which includes some dynamic css stylesheet changing

@pyjsorg pyjsorg pushed a commit that referenced this issue Apr 29, 2012

Daniel Kluev Implemented from ... import *, issue #615 b3424c5

@pyjsorg pyjsorg pushed a commit that referenced this issue Apr 29, 2012

Daniel Kluev Tests for from ... import *, issue #615 ef3c0e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment