Code Monkey home page Code Monkey logo

opdss's Introduction

OPDSS: Open Platform Digital Signage System

High-quality digital signage generation system that can be customized by user

Development

  • Language: Python 3.6.1
  • Other requirements: Specified in requirements.txt

Conventions

Commit message convention

  • Commit message should have no problem when it is interpreted as "This commit will <commit_msg>"
    • In other words, always start with verb in infinitive form (e.g. start with "Update", not "Updates")
  • Always capitalize the commit message
  • Commit message must be shorter than 50 characters
  • It is recommended to write detailed commit description for every commit

Code convention

  • TODO: Styling tool or static analyzer should be applied

Other conventions

  • Update requirements.txt whenever you install the new package with pip installer
    • Always include version information (i.e. Flask==0.12.2)

Development Environment Setting

Using pyenv & Ubuntu

  • Tested in Ubuntu 16.04.2 LTS
  1. Install dependencies
~$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \
> libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
~$ sudo apt-get install git #If git is not installed
  1. Install pyenv using pyenv-installer
~$ curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
  1. If warning occurs, add presented commands in ~/.bashrc and restart the shell
  2. Update pyenv
~$ pyenv update
  1. Install Python 3.6.1 in pyenv
~$ pyenv install 3.6.1
  1. Create virtual environment for development with Python 3.6.1
~$ pyenv virtualenv 3.6.1 venv
  1. Activate virtual environment
~$ pyenv activate venv
  1. Clone the repository and move the directory into it
~$ git clone https://github.com/limgit/guess
#If credential is required, enter it.
~$ cd guess
  1. Install the requirements
~/guess$ pip install -r requirements.txt
  1. PROFIT!

Everytime you work on the repository, activate virtualenv with $ pyenv activate venv.

To deactivate, $ pyenv deactivate is used.

opdss's People

Watchers

 avatar  avatar  avatar

opdss's Issues

Save button on signage tab treatment

Save 버튼을 눌렀을 때, ID가 변경되게 하기 위해서는 custom signal을 써야 할것으로 보임

SignageManagementTab에서 QObject의 객체를 만들어 SignageWidget쪽에 넘겨주고, SignageWidget에서는 save button clicked event가 발생하면 받아둔 QObject에 시그널을 쏜다. 그리고 SignageManagementTab에서는 이 시그널을 받아 key 업데이트를 진행한다.

#!/usr/bin/python3
# -*- coding: utf-8 -*-

"""
ZetCode PyQt5 tutorial 

In this example, we show how to emit a
signal. 

author: Jan Bodnar
website: zetcode.com 
last edited: January 2015
"""

import sys
from PyQt5.QtCore import pyqtSignal, QObject
from PyQt5.QtWidgets import QMainWindow, QApplication


class Communicate(QObject):
    
    closeApp = pyqtSignal() 
    

class Example(QMainWindow):
    
    def __init__(self):
        super().__init__()
        
        self.initUI()
        
        
    def initUI(self):      

        self.c = Communicate()
        self.c.closeApp.connect(self.close)       
        
        self.setGeometry(300, 300, 290, 150)
        self.setWindowTitle('Emit signal')
        self.show()
        
        
    def mousePressEvent(self, event):
        
        self.c.closeApp.emit()
        
        
if __name__ == '__main__':
    
    app = QApplication(sys.argv)
    ex = Example()
    sys.exit(app.exec_())

Manager load_all refresh problem

  • 현재 상태
    • load_all을 호출하면 기존에 load된 데이터 위에 다시 load를 함
  • 목표
    • load_all을 호출하면 기존 데이터를 초기화하고 새로 load를 함

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.