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