C # WinForm UI + python bottom-up attempt

Source: Internet
Author: User

Given the fact that Python does have a weaker UI than WinForm. So I want to combine the WinForm of C # and the bottom development of Python (Windows platform).

Try to make an RSS reader. Here: http://download.csdn.net/detail/lion_awake/8240713.

Mainly from some web site crawl rss, and then parse RSS, and display on the interface.

Structure

This is a C/s architecture.

Server side, written in Python, is responsible for crawling RSS and parsing.

Client side, get the data from the server side and then display.

Client-side and server-side communication through the socket.

Fell into a pit.

1. C # Regular expression matches the Chinese problem.

Json_str = "\\u4e00" regex = new Regex ("[\\u4e00-\\u9fa5 ']+")//does not work regex = new Regex ("[\\\\u4e00-\\\\u9fa5 ']+")//ok

C # \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

2. C # Socket send data problem:

Posts here: http://bbs.csdn.net/topics/390949473

In summary, the root of the problem is that the server side uses the python-twisted in the Linereceiver this Protocol, that is, sending messages with "\ r \ n" as the Terminator (on Windows)

Feel

Perhaps the syntax of C # is not familiar, the same thing, with Python implementation may only need 1~3h, in C # tossing for two days. Mainly out of the question, Google is not good to find the answer, and secondly, a lot of things at the bottom of debugging do not go in, finally asked the C # counterparts, basically no few can answer the why.

Maybe for his interface instead of C #, but the tradeoff is whether you can harness the various compatibility issues and time costs.

Although Python has a lot of good bottom-level, and the Web UI is good, but for the desktop UI, there is a lack of, especially the game. This piece of short board to make up, temporary wooden god horse good plan. Priority ranking: Mature Open Source Solutions > proven closed source solutions > immature open Source Solutions > Immature closed-source solutions.

Second, consider the proficiency level of the skill. Perhaps a combination of the following priorities may be: mature open source Solutions > immature open Source Solutions > Mature closed Source Solutions > Immature closed-source solutions.

C # WinForm UI + python bottom-up attempt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.