GithubHelp home page GithubHelp logo

pyro-team / pyro-demo Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 13.41 MB

Python riding on Office - Demo application for Python Office COM Addin.

License: MIT License

Python 99.65% Batchfile 0.02% C# 0.34%
python ironpython com-addin office-addin shared-addin

pyro-demo's Introduction

PYRO DEMO

Python riding on Office - Demo application for Python Office COM Addin.

Introduction

Pyro is a demo project providing basic concepts on how to run Python scripts from a Microsoft Office COM Addin. The application demonstrates how to do the following things.

In a C# COM Addin:

  • build a simple Shared COM Addin
  • deployment of dlls as Office addin (registration in Windows registry)
  • integrate IronPython as scripting host
  • implement the ribbon interface (IRibbonExtensibility), to add tabs/groups/buttons to the ribbon
  • implement the task pane interface (ICustomTaskPaneConsumer), to add task panes to your addin (not provided yet)
  • show and hide task panes from the ribbon (not provided yet)

and in Python:

  • manipulate office objects
  • handle ribbon and task pane events (latter not provided yet)
  • create WPF windows
  • two-way-binding to Properties from WPF controls
  • add thrid party librarties to your WPF windows and task panes (FluentRibbon, MahApps, Google Material Icons)
  • use windows-dlls, e.g. user32-dll to show simple windows message boxes

Quick Start

Start by cloning the repository an run installer\install.bat. The installation will register the COM addin in the Office products (only active in PowerPoint by default).

If you use Office 2010, you need to build the addin first by running dotnet\build2010.bat. To build the addin you will need .Net Framework SDK to be installed.

System requirements

Pyro runs on Windows with Microsoft Office 2010 or more recent Office versions. There is no Mac-Version for Pyro since COM addins are not supported in Mac-Office versions.

Contributions

Pyro currently uses the following third party libraries:

Links and resources

The following links and resources can be helpful if you plan to build your own Python COM Addin:

pyro-demo's People

Contributors

ru-ben avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.