Skip to content

Commit

Permalink
readme and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Nov 8, 2014
1 parent 86e8c31 commit 35d1b2c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
# danmaQ
# DanmaQ

DanmaQ, pronounced as `/danmakju:/` is a small QT program to play danmaku on any screen.

## Warning

DanmaQ is still under development, documents might be outdated.

## Todo
## Run Demo

- [ ] Copy Gdanmaku features
### Dependencies

`danmaQ` depends on `requests` and `PyQt5`, you can either install via `pip` or system package manager,
if you use Windows, please download and install python3.4 and PyQt5 manually.

### Use TUNA Service

First u need to create a channel, go to http://dm.tuna.moe/ and create a channel,
(let's use `ooxx` as the channel name and `passw0rd` as the password)

then run `python danmaQ.py` and fill `http://dm.tuna.moe` to server,
and your channel name (`ooxx`) and channel password (`passw0rd)`.

then open http://dm.tuna.moe/ and click to your channel page, then post.

### Server Hosted Service

Clone https://github.com/tuna/gdanmaku-server and run `webserver.py` to start a publishing server.

### Installation

run `python setup.py install`.

## Screenshot

![](https://raw.githubusercontent.com/bigeagle/danmaQ/master/screenshots/xiaowang.png)
Empty file modified danmaQ.py
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions danmaQ/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@ def __init__(self, parent=None):
layout.addLayout(hbox)

hbox = QtWidgets.QHBoxLayout()
self.config_button = QtWidgets.QPushButton("Preferences", self)
self.hide_button = QtWidgets.QPushButton("Hide", self)
self.main_button = QtWidgets.QPushButton("Subscribe", self)
hbox.addWidget(self.config_button)
hbox.addWidget(self.hide_button)
hbox.addWidget(self.main_button)
layout.addLayout(hbox)
self.setLayout(layout)

self.config_button.released.connect(self.config_dialog.show)
self.hide_button.released.connect(self.hide)
self.main_button.released.connect(self.subscribe_danmaku)
self.config_dialog.preferenceChanged.connect(self.apply_new_preference)
Expand Down
2 changes: 1 addition & 1 deletion danmaQ/danmaq_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"blue": ('rgb(20, 95, 198)', QtGui.QColor("white"), ),
"cyan": ('rgb(0, 255, 255)', QtGui.QColor("black"), ),
"red": ('rgb(231, 34, 0)', QtGui.QColor("white"), ),
"yellow": ('rgb(1, 221, 0)', QtGui.QColor("black"), ),
"yellow": ('rgb(255, 221, 2)', QtGui.QColor("black"), ),
"green": ('rgb(4, 202, 0)', QtGui.QColor("black"), ),
"purple": ('rgb(128, 0, 128)', QtGui.QColor("white"), ),
}
Expand Down
Binary file added screenshots/xiaowang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35d1b2c

Please sign in to comment.